tijian_tieying/web/Web/Moa/Subaltern/SubCustom.aspx
2025-02-20 12:14:39 +08:00

247 lines
13 KiB
Plaintext

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SubCustom.aspx.cs" Inherits="Subaltern_SubCustom" %>
<html>
<head>
<title><%=System.Configuration.ConfigurationManager.AppSettings["SYSTitle"]%></title>
<LINK href="../Style/Style.css" type="text/css" rel="STYLESHEET">
<script src="../JS/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<SCRIPT LANGUAGE="JavaScript">
var a;
function CheckValuePiece(){
if(window.document.form1.GoPage.value == "")
{
alert("请输入跳转的页码!");
window.document.form1.GoPage.focus();
return false;
}
return true;
}
function CheckAll(){
if(a==1)
{
for(var i=0;i<window.document.forms['form1'].elements.length;i++)
{
var e = form1.elements[i];
e.checked =false;
}
a=0;
}
else
{
for(var i=0;i<window.document.forms['form1'].elements.length;i++)
{
var e = form1.elements[i];
e.checked =true;
}
a=1;
}
}
function CheckDel(){
var number=0;
for(var i=0;i<window.document.forms['form1'].elements.length;i++)
{
var e = form1.elements[i];
if (e.Name != "CheckBoxAll")
{
if(e.checked==true)
{
number=number+1;
}
}
}
if(number==0)
{
alert("请选择需要删除的项!");
return false;
}
if (window.confirm("你确认删除吗?"))
{
return true;
}
else
{
return false;
}
}
function CheckDel1(){
var number=0;
for(var i=0;i<window.document.forms['form1'].elements.length;i++)
{
var e = form1.elements[i];
if (e.Name != "CheckBoxAll")
{
if(e.checked==true)
{
number=number+1;
}
}
}
if(number==0)
{
alert("请选择需要转移的客户数据!");
return false;
}
if (window.confirm("你确认将选中客户转移给选定的业务员吗?"))
{
return true;
}
else
{
return false;
}
}
function CheckModify(){
var Modifynumber=0;
for(var i=0;i<window.document.forms['form1'].elements.length;i++)
{
var e = form1.elements[i];
if (e.Name != "CheckBoxAll")
{
if(e.checked==true)
{
Modifynumber=Modifynumber+1;
}
}
}
if(Modifynumber==0)
{
alert("请至少选择一项!");
return false;
}
if(Modifynumber>1)
{
alert("只允许选择一项!");
return false;
}
return true;
}
</SCRIPT>
<body>
<form id="form1" runat="server">
<div>
<table style="width: 100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="middle" style="border-bottom: #006633 1px dashed; height: 30px; ">&nbsp;<img src="../images/BanKuaiJianTou.gif" />
<a class="hei" href="../Main/MyDesk.aspx">桌面</a>&nbsp;>>&nbsp;客户管理&nbsp;>>&nbsp;客户信息</td>
<td align="right" valign="middle" style="border-bottom: #006633 1px dashed; height: 30px;">
<asp:ImageButton ID="ImageButton3" runat="server" OnClientClick="javascript:return CheckDel();" ImageUrl="../images/Button/BtnDel.jpg" ImageAlign="AbsMiddle" OnClick="ImageButton3_Click" />
&nbsp;<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="../images/Button/BtnReport.jpg" ImageAlign="AbsMiddle" OnClick="ImageButton2_Click" /><img src="../images/Button/JianGe.jpg" /><img class="HerCss" onclick="javascript:window.history.go(-1)" src="../images/Button/BtnExit.jpg" />&nbsp;</td>
</tr>
<tr>
<td colspan="2" style="border-bottom: #006633 1px dashed; height: 30px" valign="middle">
&nbsp; &nbsp;&nbsp;
选择过滤条件:<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Value="CustomName">客户名称</asp:ListItem>
<asp:ListItem Value="CustomSerils">客户编号</asp:ListItem>
<asp:ListItem Value="ChargeMan">负责人</asp:ListItem>
<asp:ListItem Value="XingZhi">单位性质</asp:ListItem>
<asp:ListItem Value="LaiYuan">客户来源</asp:ListItem>
<asp:ListItem Value="QuYu">所在区域</asp:ListItem>
<asp:ListItem Value="ZhuangTai">客户状态</asp:ListItem>
<asp:ListItem Value="LeiBie">客户类别</asp:ListItem>
<asp:ListItem Value="JiBie">客户级别</asp:ListItem>
<asp:ListItem Value="YeWuFanWei">业务范围</asp:ListItem>
<asp:ListItem Value="HangYe">所在行业</asp:ListItem>
<asp:ListItem Value="YuJiDingDanDate">预计日期</asp:ListItem>
<asp:ListItem Value="YuJiTiXing">提醒日期</asp:ListItem>
<asp:ListItem Value="BackInfoA">客户自定义A</asp:ListItem>
<asp:ListItem Value="IFShare">共享人员</asp:ListItem>
<asp:ListItem Value="UserName">业务员</asp:ListItem>
</asp:DropDownList>
过滤内容:<asp:TextBox ID="TextBox1" runat="server" Height="20px" Width="85px"></asp:TextBox>
<img class="HerCss" onclick="var wName;var RadNum=Math.random();wName=window.showModalDialog('../Main/SelectCondition.aspx?TableName=ERPCustomInfo&LieName='+document.getElementById('DropDownList1').value+'&Radstr='+RadNum,'','dialogWidth:350px;DialogHeight=400px;status:no;help:no;resizable:yes;');if(wName==null){}else{document.getElementById('TextBox1').value=wName;}"
src="../images/Button/search.gif" />&nbsp; 创建时间:<asp:TextBox id="TextBox2" runat="server" onClick="WdatePicker({startDate:'%y-%M-01',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true})" Width="80px" ></asp:TextBox>至
<asp:TextBox id="TextBox3" runat="server" onClick="WdatePicker({startDate:'%y-%M-01',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true})" Width="80px" ></asp:TextBox>
<asp:ImageButton
ID="ImageButton4" runat="server" ImageAlign="AbsMiddle" ImageUrl="../images/Button/BtnSerch.jpg"
OnClick="ImageButton4_Click" />
&nbsp; &nbsp; &nbsp;</td>
</tr>
</table>
</div>
<table style="width: 100%">
<tr>
<td ><asp:GridView ID="GVData" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
BorderStyle="Groove" BorderWidth="1px" OnRowDataBound="GVData_RowDataBound" PageSize="15"
Width="100%">
<PagerSettings Mode="NumericFirstLast" Visible="False" />
<PagerStyle BackColor="LightSteelBlue" HorizontalAlign="Right" />
<HeaderStyle BackColor="#F3F3F3" Font-Size="12px" ForeColor="Black" Height="20px" /><AlternatingRowStyle BackColor="WhiteSmoke" />
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="LabVisible" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ID")%>'
Visible="False"></asp:Label><asp:CheckBox ID="CheckSelect" runat="server" />
</ItemTemplate>
<HeaderStyle Width="20px" />
<HeaderTemplate>
<input id="CheckBoxAll" onclick="CheckAll()" type="checkbox" />
</HeaderTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="客户名称">
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server" Font-Underline="True"
NavigateUrl='<%# "../CRM/CustomView.aspx?ID="+ DataBinder.Eval(Container.DataItem, "ID")%>'><%# DataBinder.Eval(Container.DataItem, "CustomName")%></asp:HyperLink>
</ItemTemplate>
<ItemStyle HorizontalAlign="Left" />
</asp:TemplateField>
<asp:BoundField DataField="YuJiDingDanDate" HeaderText="预计订单日期" >
</asp:BoundField>
<asp:BoundField DataField="ChargeMan" HeaderText="负责人" >
</asp:BoundField>
<asp:BoundField DataField="TelStr" HeaderText="联系电话" >
</asp:BoundField>
<asp:BoundField DataField="ZhuangTai" HeaderText="客户状态" >
</asp:BoundField>
<asp:BoundField DataField="LeiBie" HeaderText="客户类别" >
</asp:BoundField>
<asp:BoundField DataField="JiBie" HeaderText="客户级别" >
</asp:BoundField>
<asp:BoundField DataField="TimeStr" HeaderText="创建时间" >
</asp:BoundField>
<asp:BoundField DataField="UserName" HeaderText="用户名" >
</asp:BoundField>
</Columns>
<RowStyle HorizontalAlign="Center" Height="25px" />
<EmptyDataTemplate>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="border-right: black 1px; border-top: black 1px;
border-left: black 1px; border-bottom: black 1px; background-color: whitesmoke;">
该列表中暂时无数据!</td>
</tr>
</table>
</EmptyDataTemplate>
</asp:GridView>
</td>
</tr>
<tr>
<td style="border-top: #000000 1px solid;border-bottom: #000000 1px solid">
<asp:ImageButton ID="BtnFirst" runat="server" CommandName="First" ImageUrl="../images/Button/First.jpg"
OnClick="PagerButtonClick" />
<asp:ImageButton ID="BtnPre" runat="server" CommandName="Pre" ImageUrl="../images/Button/Pre.jpg"
OnClick="PagerButtonClick" />
<asp:ImageButton ID="BtnNext" runat="server" CommandName="Next" ImageUrl="../images/Button/Next.jpg"
OnClick="PagerButtonClick" />
<asp:ImageButton ID="BtnLast" runat="server" CommandName="Last" ImageUrl="../images/Button/Last.jpg"
OnClick="PagerButtonClick" />
&nbsp;第<asp:Label ID="LabCurrentPage" runat="server" Text="Label"></asp:Label>页&nbsp; 共<asp:Label
ID="LabPageSum" runat="server" Text="Label"></asp:Label>页&nbsp;
<asp:TextBox ID="TxtPageSize" runat="server" CssClass="TextBoxCssUnder2" Height="20px"
Width="35px">15</asp:TextBox>
行每页 &nbsp; 转到第<asp:TextBox ID="GoPage" runat="server" CssClass="TextBoxCssUnder2"
Height="20px" Width="33px"></asp:TextBox>
页&nbsp;
<asp:ImageButton ID="ButtonGo" runat="server" OnClientClick="javascript:return CheckValuePiece();" ImageUrl="../images/Button/Jump.jpg" OnClick="ButtonGo_Click" /></td>
</tr>
</table>
</form>
</body>
</html>