📄 coneditctrl.ascx
字号:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ConEditCtrl.ascx.cs" Inherits="Contact_Ctrls_ConEditCtrl" %>
<%@ Register Assembly="WFNetCtrl" Namespace="WFNetCtrl" TagPrefix="cc1" %>
<script language="javascript" type="text/javascript">
function SetDepName()
{
var returnValue = window.showModalDialog('CustSelect.aspx',window,'dialogWidth=600px;dialogHeight=400px;help:no;resizable:no;scroll=yes; status:no;');
if(returnValue != null && returnValue.length > 0 && returnValue != "undefined")
{
document.getElementById("ConEditCtrl1_ddlCustomNo").value = returnValue;
setTimeout('__doPostBack(\'ConEditCtrl1$ddlCustomNo\',\'\')', 0);
}
}
function SetItemName()
{
var returnValue = window.showModalDialog('ItemSelect.aspx',window,'dialogWidth=600px;dialogHeight=400px;help:no;resizable:no;scroll=yes; status:no;');
if(returnValue != null && returnValue.length > 0 && returnValue != "undefined")
{
document.getElementById("ConEditCtrl1_ddlAndItem").value = returnValue;
}
}
</script>
<table align="center" border="0" cellpadding="1" cellspacing="0" style=" margin-top:10px; width:90%; text-align:center; border:solid 1px blue;">
<tr>
<td style="background-color: #94bae7; text-align:left; font-weight:bold;">>> 数据编辑(<span style="color:Red;">*</span>必填) </td>
</tr>
<tr>
<td><fieldset style="WIDTH: 94%; border:solid 1px blue;"><legend>
<b>基本信息</b>
</legend>
<table id="GridTable" cellspacing="1" cellpadding="1" style="width:100%" border="0">
<tr>
<td style="width: 15%" align="right">
</td>
<td colspan="3" align="left">
</td>
</tr>
<tr>
<td align="right" style="width: 15%">
客户名称:<font color="red">*</font></td>
<td style="width: 30%" align="left"><asp:DropDownList ID="ddlCustomNo" runat="server" Width="150px" AutoPostBack="True" OnSelectedIndexChanged="ddlCustomNo_SelectedIndexChanged">
</asp:DropDownList>
<img alt="" src="../images/test_search.gif" onclick="SetDepName();" style=" cursor:hand;" />
<img alt="" src="../images/clear.gif" style="display: none" /></td>
<td align="right" style="width: 20%">
客户人员:<font color="red">*</font></td>
<td align="left">
<asp:DropDownList ID="ddlCustPerson" runat="server" Width="150px">
<asp:ListItem>请选择...</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td align="right" style="width: 15%">
<font color="red"><span style="color: #000000">联络主题:</span><font color="red">*</font></font></td>
<td align="left" colspan="3">
<asp:TextBox ID="txtTitle" runat="server" Width="350px" MaxLength="60"></asp:TextBox></td>
</tr>
<tr>
<td align="right" style="width: 15%">
联络方式:<font color="red">*</font></td>
<td style="width: 30%" align="left">
<asp:DropDownList ID="ddlConType" runat="server" Width="150px">
</asp:DropDownList></td>
<td align="right" style="width: 20%">
联络阶段:<span style="color: #ff0000">*</span>
</td>
<td align="left">
<asp:DropDownList ID="ddlConPriod" runat="server" Width="150px">
</asp:DropDownList></td>
</tr>
<tr>
<td align="right" style="width: 15%">
相关项目:<span style="color: #ff0000">*</span></td>
<td align="left" colspan="3">
<asp:DropDownList ID="ddlAndItem" runat="server">
</asp:DropDownList>
<img alt="" src="../images/test_search.gif" onclick="SetItemName();return false;" style=" cursor:hand;" />
<img alt="" src="../images/clear.gif" style="display: none" /></td>
</tr>
<tr>
<td align="right" style="width: 15%">
联络费用:<font color="red">*</font></td>
<td style="width: 30%" align="left">
<asp:TextBox ID="txtConMoney" runat="server" Width="150px"></asp:TextBox>(元)</td>
<td align="right" style="width: 20%">
联络日期:<font color="red">*</font></td>
<td align="left">
<cc1:Calendar ID="txtDateTime" runat="server" Width="150px"></cc1:Calendar></td>
</tr>
<tr>
<td align="right" style="width: 15%">
我方人员:<font color="red">*</font></td>
<td align="left" style="width: 30%">
<asp:DropDownList ID="ddlPerson" runat="server" Width="150px">
</asp:DropDownList></td>
<td align="right" style="width: 20%">
</td>
<td align="left">
</td>
</tr>
<tr>
<td align="right" style="width: 15%">
联络内容:<span style="color: #ff0000">*</span></td>
<td align="left" colspan="3">
<textarea id="txtContent" cols="50" rows="6" runat="server"></textarea></td>
</tr>
<tr>
<td align="right" style="width: 15%">
备注: </td>
<td align="left" colspan="3">
<textarea id="txtNote" cols="50" runat="server"></textarea></td>
</tr>
<tr>
<td align="right" style="width: 15%" valign="top">
附加文件: </td>
<td align="left" colspan="3">
<asp:Label ID="lblAcc" runat="server" Text="无附件" Visible="False"></asp:Label>
<asp:DataList ID="dtlAccList" runat="server" CellPadding="1" ForeColor="#333333" ShowFooter="False"
ShowHeader="False" Width="85%" OnItemCommand="dtlAccList_ItemCommand" OnItemDataBound="dtlAccList_ItemDataBound">
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<SelectedItemStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
<AlternatingItemStyle BackColor="White" />
<ItemStyle BackColor="#E3EAEB" />
<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<ItemTemplate>
<table width="99%" align="center" border="0" cellpadding="1" cellspacing="0">
<tr>
<td style="width: 30%" align="left">
<asp:Label ID="lblDocumentName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"documentName") %>'></asp:Label></td>
<td style="width: 50%" align="left">
<asp:Label ID="lblDocumentPath" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"documentPath") %>'></asp:Label></td>
<td align="left">
<asp:LinkButton ID="lbtnDelete" runat="server" CommandName="lbtnDelete">删除</asp:LinkButton></td>
</tr>
</table>
</ItemTemplate>
</asp:DataList></td>
</tr>
<tr>
<td align="right" style="width: 15%">
</td>
<td align="left" colspan="3">
<hr size="1" width="70%" />
</td>
</tr>
<tr>
<td align="right" style="width: 15%">
</td>
<td align="left" colspan="3">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="left">
文件上载的最大字节为<font color="red">10,240K<br />
<span style="color: #000000">(支持文件格式:doc / txt / jpg / gif / ppt / csv / xls / rar /
zip / docx)</span></font></td>
<td align="center">
<a style="cursor:hand; text-decoration:underline;" onclick="javascript:AddAUpload();">更多附件上载</a></td>
</tr>
<tr>
<td align="left" colspan="2">
<div id="dvFiles">
<input name="Files" type="file" size="50" /><br />
<input name="Files" type="file" size="50" /><br />
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
<tr>
<td style="height:10px;">
</td>
</tr>
<tr>
<td>
<asp:Button ID="btnSubmit" runat="server" Text="提 交" OnClick="btnSubmit_Click" />
<asp:Button ID="btnCancel" runat="server" Text="关 闭" /></td>
</tr>
<tr>
<td style="height:10px;">
</td>
</tr>
</table>
<script language="javascript" type="text/javascript">
function AddAUpload()
{
var strTemp= '';
strTemp = strTemp + '<input type=file name=Files size=50/><br/>';
dvFiles.insertAdjacentHTML('beforeEnd',strTemp);
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -