📄 conaddctrl.ascx
字号:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ConAddCtrl.ascx.cs" Inherits="Contact_Ctrls_ConAddCtrl" %>
<%@ 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("ConAddCtrl1_ddlCustomNo").value = returnValue;
setTimeout('__doPostBack(\'ConAddCtrl1$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("ConAddCtrl1_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%">
<span style="color: #000000">联络主题:</span><font color="red">*</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%">
联络费用:<span style="color: #ff0000">*</span></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"><span style="color: #000000">
联络日期:</span><font color="red">*</font></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 style="width: 30%" align="left">
<asp:DropDownList ID="ddlPerson" runat="server" Width="150px">
</asp:DropDownList></td>
<td align="right" style="width: 20%"><font color="red"></font></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%">
附加文件: </td>
<td align="left" colspan="3">
<asp:Label ID="lblAcc" runat="server" Text="无附件"></asp:Label>
</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<span style="color: #000000">(支持文件格式:doc / txt /
jpg / gif / ppt / csv / xls / rar / zip / docx)</span></font></td>
<td align="center">
<a href="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="取 消" OnClick="btnCancel_Click" /></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 + -