From e8e3122fdc4844202fb9e05477d47139e47a8aae Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 12 十二月 2025 08:59:47 +0800
Subject: [PATCH] 作业本送货变二级菜单
---
CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsVisit.aspx | 67 +++++++++++++++++++++++++++++----
1 files changed, 58 insertions(+), 9 deletions(-)
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsVisit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsVisit.aspx
index d425ced..09c4022 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsVisit.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsVisit.aspx
@@ -19,8 +19,48 @@
window.document.body.innerHTML = bdhtml;//閲嶆柊缁欓〉闈㈠唴瀹硅祴鍊硷紱
}
-
+
+ //鏌ョ湅
+ function checkSelFile() {
+
+ //var oFile = document.getElementById('filesel');
+ //if (oFile.value == "") {
+ // alertMsg('娌℃湁閫夋嫨鏂囦欢');
+ // return false;
+
+ //}
+ showLoadingIndicator();
+ //debugger;
+ //replaceParamVal("deleteKeyIds", "");
+ return true;
+ }
+
+ function showLoadingIndicator() {
+ document.getElementById('loading').style.display = 'block';
+ }
+
+ function hideLoadingIndicator() {
+ document.getElementById('loading').style.display = 'none';
+ }
+
+ //鏌ョ湅
+ function onViewvisit(keyid) {
+ top.Dialog.open({ URL: "/Pages/work/MyvisitDetail.aspx?Keyid=" + keyid, Title: "鏌ョ湅缁存姢璇︽儏", Width: 1100, Height: 800 });
+ }
</script>
+ <style>
+ .table-wrap {
+ width: 100%; /* 闄愬埗瀹瑰櫒瀹藉害 */
+ word-break: break-all; /* 寮哄埗鑻辨枃/鏁板瓧鎹㈣ */
+ /* 鎴栦娇鐢� word-wrap: break-word; 鍙湪鍗曡瘝鍐呮崲琛� */
+ }
+ .truncate {
+ white-space: nowrap; /* 涓嶆崲琛� */
+ overflow: hidden; /* 闅愯棌瓒呭嚭閮ㄥ垎 */
+ text-overflow: ellipsis; /* 鏄剧ず鐪佺暐鍙� */
+ max-width: 150px; /* 闄愬埗鍗曞厓鏍兼渶澶у搴� */
+ }
+</style>
</head>
<body>
<form runat="server" id="form1" class="form">
@@ -39,7 +79,11 @@
<fieldset id="weihujilu">
<legend>娣诲姞缁存姢璁板綍</legend>
<table class="tableStyle" width="100%">
- <tr>
<td class="ali01 ">缁存姢鏃ユ湡锛�</td>
<td ><input id="txtVisitTime" type="text" runat="server" maxlength="50" class="date w90px" datefmt="yyyy-MM-dd" /></td>
<td class="ali03 ">缁存姢璁板綍锛�</td>
<td colspan="2" ><textarea runat="server" id="txtvisitRemark" style=" width:92%; height:30px;" maxlength="200"></textarea></td>
<td ><asp:Button ID="Button1" Text="娣诲姞缁存姢璁板綍" runat="server" OnClick="btn_Submit_Visit" ToolTip="璇ヨ褰曚細娓呴櫎璇ュ鎴风殑渚嬭缁存姢鎻愰啋"/><asp:Button ID="btn_Submit" Text="娣诲姞鍋囨棩缁存姢璁板綍" runat="server" ToolTip="璇ヨ褰曚細娓呴櫎璇ュ鎴风殑鍋囨棩缁存姢鎻愰啋" OnClick="btn_Submit_Visit_jiari"/></td>
</tr>
+ <tr>
<td class="ali01 " style="width:10%;">缁存姢鏃ユ湡锛�</td>
<td style="width:20%;" ><input id="txtVisitTime" type="text" runat="server" maxlength="50" class="date w90px" datefmt="yyyy-MM-dd" /></td>
<td class="ali03 " style="width:10%;">缁存姢璁板綍锛�</td>
<td colspan="2" style="width:60%;" ><textarea runat="server" id="txtvisitRemark" style=" width:92%; height:30px;" maxlength="2000"></textarea></td>
</tr>
+ <tr>
+ <td class="ali03" colspan="2">
+ <input type="file" id="filesel" name="__hetongFile" keepdefaultstyle="true" multiple="multiple" runat="server" text="璇烽�夋嫨鏂囦欢" /></td>
+ <td>
<td ><asp:Button ID="Button1" Text="娣诲姞缁存姢璁板綍" OnClientClick="return checkSelFile()" runat="server" OnClick="btn_Submit_Visit" ToolTip="璇ヨ褰曚細娓呴櫎璇ュ鎴风殑渚嬭缁存姢鎻愰啋"/><asp:Button ID="btn_Submit" Text="娣诲姞鍋囨棩缁存姢璁板綍" runat="server" ToolTip="璇ヨ褰曚細娓呴櫎璇ュ鎴风殑鍋囨棩缁存姢鎻愰啋" OnClick="btn_Submit_Visit_jiari"/></td>
<div id="loading" class="toast-message" style="display: none;">淇濆瓨涓紒</div>
</tr>
</table>
<%-- <asp:Repeater ID="RepClientList" runat="server">
<HeaderTemplate>
@@ -87,7 +131,7 @@
<fieldset>
<legend>缁存姢璁板綍</legend>
<!--startprint-->
- <table class="tableStyle" style="margin-bottom:10px;">
+ <table class="tableStyle" style="margin-bottom:10px;" width="100%;">
<tr>
@@ -102,21 +146,23 @@
<asp:Repeater ID="RepClientList" runat="server">
<HeaderTemplate>
- <table class="tableStyle" useclick="false" usecheckbox="true" sortmode="true" border="1" cellspacing="0" cellpadding="0" style="text-align: center;">
+ <table class="tableStyle" border="1" cellspacing="0" cellpadding="0" style="text-align: center;" width="100%;">
<tr>
<th style="text-align: center;width:10px;">
搴忓彿
</th>
- <th style="text-align: center;">
+ <th style="text-align: center;width:10%;">
缁存姢鏃ユ湡
</th>
- <th style="text-align: center;">
+ <th style="text-align: center;width:70%;">
缁存姢璁板綍
</th>
- <th style="text-align: center;">
+ <th style="text-align: center;width:10%;">
缁存姢浜�
</th>
-
+ <th style="text-align: center;width:10%;">
+ 璇︽儏
+ </th>
</tr>
</HeaderTemplate>
<ItemTemplate>
@@ -128,12 +174,15 @@
<td>
<%#Eval("VisitTime", "{0:yyyy-MM-dd}")%>
</td>
- <td>
+ <td class="truncate" title="<%#Eval("Remark")%>" >
<%#Eval("Remark")%>
</td>
<td>
<%#Eval("CreaterName")%>
</td>
+ <td>
+ <span onclick="onViewvisit('<%#Eval("Keyid")%>')">璇︽儏</span>
+ </td>
</tr>
</ItemTemplate>
<FooterTemplate>
--
Gitblit v1.9.1