📄 contractcheck.aspx
字号:
<%@ page language="C#" autoeventwireup="true" inherits="general_Contract_ContractCheck, CrmCommand" %>
<%@ Register TagPrefix="C1WebGrid" Namespace="C1.Web.C1WebGrid" Assembly="C1.Web.C1WebGrid.2" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>合同信息</title>
<script src="../../Javascript/canlendar.js" type="text/javascript"></script>
<script src="../../Javascript/Trim.js" type="text/javascript"></script>
<script language=javascript type="text/javascript">
function RLtrim()
{
var t1=document.getElementById("Text1").value;
var t2=document.getElementById("Text2").value;
if(Trim(t1) && Trim(t2))
{
return true;
}
else
{
alert('日期不能为空');
return false;
}
}
</script>
<script language=javascript type="text/javascript">
var menu_id=0;
function openwin()
{
var dd=window.showModalDialog("ContractInfo.aspx","水平","dialogWidth=830px;dialogHeight=750px");
if(dd!=null)
{
alert('ds');
location.reload();
}
}
function setPointer(theRow, thePointerColor,menu_id_over)
{
if(menu_id!=menu_id_over)
{
if(thePointerColor == "#B3D1FF")
theRow.className="menu_active";
else
theRow.className="menu_comon";
}
}
function view_menu1(Conid)
{
document.getElementById("HidConid").value=Conid;
menu_id=1;
if(menu_id!=0)
bottom.location="ContractJbInfo.aspx?ConTrId="+document.getElementById("HidConid").value;
menu_id=1;
menu_1.className="menu_active";
menu_2.className="menu_comon";
menu_3.className="menu_comon";
menu_4.className="menu_comon";
}
function view_menu3(Conid)
{
document.getElementById("HidConid").value=Conid;
bottom.location="CheckRecord.aspx?ConTrId="+Conid;
menu_id=3;
menu_1.className="menu_comon";
menu_3.className="menu_active";
menu_4.className="menu_comon";
}
function view_menu4(Conid)
{
document.getElementById("HidConid").value=Conid;
bottom.location="ContractEdit.aspx?ConTrId="+Conid;
menu_id=4;
menu_1.className="menu_comon";
menu_3.className="menu_comon";
menu_4.className="menu_active";
}
function CheckOk(formName,chkName,str)
{
var i=0;
var pronameid;
var objForm = document.forms[formName];
var objLen = objForm.length;
for (var iCount = 0; iCount < objLen; iCount++)
{
if (objForm.elements[iCount].type == "checkbox")
{
if((objForm.elements[iCount].name.indexOf(chkName)>-1))
{
if( objForm.elements[iCount].checked )
{
i=i+1;
pronameid=objForm.elements[iCount].value;
}
}
}
}
if(i>0)
{
if(str != "")
{
if(i>1)
{
alert('只允许选择一条记录!');
}
else if(i == 1)
{
var url=str+"?ConTrId="+pronameid;
var dd=window.showModalDialog(url,"水平","dialogWidth=785px;dialogHeight=650px");
if(dd=="Ok")
{
location.reload();
}
}
}
else
{
return confirm('确定要废除该合同吗?');
}
}
else
{
alert('必须选择一条记录!');
return false;
}
}
</script>
<style type="text/css">
.style2 {
border-style: solid;
border-width: 1px;
}
</style>
</head>
<body class ="bodycolor" leftmargin="0" topmargin="0">
<form id="form1" runat="server">
<div>
<div>
<table align="center" border="0" cellspacing="1"
style="width: 800px" bgcolor="black">
<tr>
<td class="TableHeader" colspan="4" style="width: 800px">
注意:这只显示未审核及审核未通过的合同</td>
</tr>
<tr>
<td class="TableData" colspan="4">
<table style="width: 100%" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 69px">客户名称:</td>
<td style="width: 130px"><asp:TextBox ID="TxtName" runat="server" CssClass="BigInput"></asp:TextBox>
</td>
<td style="width: 70px" align="right">签约日期:</td>
<td style="border: 1; border-color: #C0C0C0; width: 96px">
<input id="Text1" runat="server" type="text" readonly style="border: 1px solid #C0C0C0" /></td>
<td style="width: 3px">
<img border="0" onclick='popUpCalendar(document.getElementById("Text1"), document.getElementById("Text1"), "yyyy-mm-dd")'
src="../../App_Themes/Green/images/Calendar.gif" style="width: 20px; height: 23px" /></td>
<td style="width: 12px">至</td>
<td style="width: 99px">
<input id="Text2" runat="server" readonly style="border: 1px solid #C0C0C0" type="text" /></td>
<td style="width: 47px">
<img border="0" onclick='popUpCalendar(document.getElementById("Text2"), document.getElementById("Text2"), "yyyy-mm-dd")'
src="../../App_Themes/Green/images/Calendar.gif" style="width: 20px; height: 23px" /></td>
<td>
<asp:Button
ID="Button7" runat="server" CssClass="BigButton" OnClick="Button7_Click"
Text="合同检索" Width="78px" /></td>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="TableData" noWrap colspan="4">合同范围: <asp:RadioButton Checked=true GroupName="rad" ID="Rad1" runat="server" Text="我的合同" OnCheckedChanged="Rad1_CheckedChanged" AutoPostBack="True" /><asp:RadioButton ID="Rad2" GroupName="rad" Text="下属合同" runat="server" OnCheckedChanged="Rad2_CheckedChanged" AutoPostBack="True" /></td>
</tr>
<tr>
<td class="TableData" colspan="4" style="width: 800px" valign=top>
<C1WebGrid:C1WebGrid ID="C1WebGrid1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" CallbackOptions="Sorting,Selection"
DataKeyField="Cl_ContractId" OnItemCreated="C1WebGrid1_ItemCreated"
OnPageIndexChanging="C1WebGrid1_PageIndexChanging" OnSortingCommand="C1WebGrid1_SortingCommand"
PageSize="10" SkinID="gridviewSkin" Width="800px" OnItemCommand="C1WebGrid1_ItemCommand">
<Columns>
<C1WebGrid:C1TemplateColumn HeaderText="选择" Visible=false>
<ItemTemplate>
<input id="item" runat="server" type="checkbox" value='<%#Eval("Cl_ContractId") %>' /></ItemTemplate>
</C1WebGrid:C1TemplateColumn>
<C1WebGrid:C1TemplateColumn HeaderText="合同编号" SortExpression="Contract_Num">
<ItemTemplate>
<a href="#" onclick="view_menu1(<%#Eval("Cl_ContractId") %>)" style="cursor: hand; height: 9px">
<%#Eval("Contract_Num") %>
</a>
</ItemTemplate>
</C1WebGrid:C1TemplateColumn>
<C1WebGrid:C1BoundColumn DataField="User_Name" HeaderText="签约人" SortExpression="User_Name">
</C1WebGrid:C1BoundColumn>
<C1WebGrid:C1TemplateColumn HeaderText="客户名称" SortExpression="Client_Name">
<ItemTemplate>
<asp:Label ID="Lkb" Text='<%# Server.HtmlDecode(Eval("Client_Name").ToString()).Length > 10 ? Server.HtmlDecode(Eval("Client_Name").ToString()).Substring(0, 10) + "..." : Server.HtmlDecode(Eval("Client_Name").ToString())%>' ToolTip='<%#Server.HtmlDecode(Eval("Client_Name").ToString())%>' runat="server"></asp:Label>
</ItemTemplate>
</C1WebGrid:C1TemplateColumn>
<C1WebGrid:C1BoundColumn DataField="Product_TotalPrice" DataFormatString="{0:C}"
HeaderText="合同金额" SortExpression="Product_TotalPrice">
</C1WebGrid:C1BoundColumn>
<C1WebGrid:C1TemplateColumn HeaderText="签约日期" SortExpression="Tracd_Time">
<ItemTemplate>
<%#string.Format("{0:d}",Eval("Tracd_Time"))%>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" Wrap="True" />
<HeaderStyle HorizontalAlign="Center" />
</C1WebGrid:C1TemplateColumn>
<C1WebGrid:C1BoundColumn DataField="Contract_State" HeaderText="合同状态" SortExpression="Contract_State">
</C1WebGrid:C1BoundColumn>
<C1WebGrid:C1TemplateColumn HeaderText="废除合同"><ItemTemplate><asp:LinkButton Text="废除合同" OnClientClick="javascript:return confirm('您真的要废除合同吗!');" runat=server CommandName="Del" ID="Del"></asp:LinkButton></ItemTemplate></C1WebGrid:C1TemplateColumn>
</Columns>
</C1WebGrid:C1WebGrid>
</td>
</tr>
<tr>
<td class="TableData" colspan="4" style="width: 800px; height: 8px">
<table bgcolor="#dddddd" bordercolordark="#ffffff" bordercolorlight="#000000" cellspacing="0" class="style2" height="100%" style="width: 800px">
<tr>
<td width="33%" id="menu_1" onclick='view_menu1(document.getElementById("HidConid").value)' onmouseout="setPointer(this, '#DDDDDD',1)"
onmouseover="setPointer(this, '#B3D1FF',1)" style="cursor: hand; height: 9px"
title="合同基本信息">
<img align="absMiddle" height="20" src="../images/menu/sms.gif" width="20" /><b><font
color="#000000"> 基本信息</font></b>
</td>
<td id="menu_3" width="33%" onclick='view_menu3(document.getElementById("HidConid").value)' onmouseout="setPointer(this, '#DDDDDD',3)"
onmouseover="setPointer(this, '#B3D1FF',3)" style="cursor: hand; height: 9px; width: 185px;"
title="合同审批记录">
<img align="absMiddle" height="20" src="../images/menu/sms.gif" width="20" /><b><font
color="#000000"> 审批记录</font></b>
</td>
<td id="menu_4" onclick='view_menu4(document.getElementById("HidConid").value)' onmouseout="setPointer(this, '#DDDDDD',4)"
onmouseover="setPointer(this, '#B3D1FF',4)" style="cursor: hand; height: 9px; width: 185px;"
title="编辑合同">
<img align="absMiddle" height="20" src="../images/menu/sms.gif" width="20" /><b><font
color="#000000"> 编辑合同</font></b>
</td> </tr>
</table>
</td>
</tr>
<tr>
<td class="TableData" colspan="4" style="width: 800px">
<iframe id="IFR" runat="server" frameborder="0" marginheight="0" marginwidth="0"
name="bottom" scrolling="auto" src="ContractJbInfo.aspx" style="width: 800px;
height: 254px"></iframe>
</td>
</tr>
</table>
</div>
</div>
<input id="HidConid" runat="server" type="hidden" />
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -