?? setcustomerrelation.ascx
字號:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="SetCustomerRelation.ascx.cs" Inherits="Storage.Count.ASCX.SetCustomerRelation" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="cc2" Namespace="xImageButton" Assembly="xImageButton" %>
<script language="JavaScript">
function addCustomer(DetailID)
{
var retValue;
retValue =fnOpenModWinM1('../COUNT/SelectSubCustomer.aspx','');
if((retValue!='cancel')&&(retValue!=undefined))
{
document.forms[0].NewProList.value=retValue;
document.forms[0].submit();
}
}
//根據給定的PROID,將產品做刪除處理
function delSubCustomer(proID)
{
if(confirm('確定要刪除嗎?'))
{
document.forms[0].delCustomer.value=proID;
document.forms[0].submit();
}
}
</script>
<table cellSpacing="0" borderColorDark="#ffffff" borderColorLight="#808080" border="1"
valign="top">
<tr>
<td colSpan="2">
<table width="100%" background="../images/button/in.gif" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30"><img src="../images/button/left.gif" width="27"></td>
<td style='COLOR:black'><span class="STYLE1"> <asp:label id="lblCaption" runat="server" Width="344px">客戶關系設置</asp:label></span>
</td>
<td width="60"><FONT face="宋體"></FONT>
</td>
<td width="60"><FONT face="宋體">
<cc2:MouseImage id="miClose" runat="server" ImageUrl="../../images/button/btnclose.gif" returnImgUrl="../images/button/btnclose.gif"
ChangeImgUrl="../images/button/btnclose_2.gif"></cc2:MouseImage></FONT></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colSpan="2" height="3" align="right">
<asp:Button id="btnSelect" runat="server" Text="選擇客戶"></asp:Button>
</td>
</tr>
<tr>
<td vAlign="top" width="25%" height="400">
<asp:RadioButtonList id="rbRootCustomerList" Width="168px" runat="server" AutoPostBack="True"></asp:RadioButtonList>
<asp:TextBox id="txRootCustomerID" Width="0px" runat="server"></asp:TextBox>
<input type='hidden' name='delCustomer'>
<asp:TextBox id="txReportID" Width="0px" runat="server">0</asp:TextBox>
<input type='hidden' name='NewProList'></td>
<td vAlign="top" width="75%">
<asp:DataGrid id="dgSubCustomerList" Width="100%" runat="server" AutoGenerateColumns="False" CellPadding="2">
<AlternatingItemStyle BackColor="#F7F7F7"></AlternatingItemStyle>
<HeaderStyle Font-Bold="True" HorizontalAlign="Center" BackColor="#DEDFFF"></HeaderStyle>
<Columns>
<asp:BoundColumn Visible="False" DataField="SubCustomerID" ReadOnly="True" HeaderText="SubCustomerID"></asp:BoundColumn>
<asp:BoundColumn DataField="SubCustomerName" ReadOnly="True" HeaderText="客戶名稱">
<HeaderStyle Width="85%"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="SubCustomerID" HeaderText="操作" DataFormatString="<input type='button' value='刪除' onclick="delSubCustomer('{0}')" >">
<HeaderStyle Width="15%"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
</Columns>
</asp:DataGrid>
<table border="0" align="right">
<tr>
<td align="right">
<asp:ImageButton id="ImageButton1" runat="server" ImageUrl="../../Images/btnSave.gif"></asp:ImageButton>
</td>
</tr>
</table>
</td>
</tr>
</table>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -