Contact_Client.aspx
上传用户:xgw_05
上传日期:2009-12-11
资源大小:20208k
文件大小:9k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="Contact_Client.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.CM.Stat.Contact_Client" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>Contact_Client</title>
  6. <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
  7. <meta content="C#" name="CODE_LANGUAGE">
  8. <meta content="JavaScript" name="vs_defaultClientScript">
  9. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  10. <LINK href="../../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  11. <script language="JavaScript" src="../../../Css/meizzDate.js"></script>
  12. <script language="javascript">
  13. function fillstring(str)
  14. {
  15. if(str.length==1)
  16. {
  17. str = "0" + str; 
  18. }
  19. return(str);
  20. }
  21. function quickseldate(type)
  22. {
  23. var begintime,endtime;
  24. var oneminute = 60*1000;
  25. var onehour   = 60*oneminute;
  26. var oneday    = 24*onehour;
  27. var oneweek   = 7*oneday;
  28. var todayDate = new Date();
  29. var date = todayDate.getDate();
  30. var month= todayDate.getMonth() +1;
  31. var year= todayDate.getYear();
  32. var day = todayDate.getDay();
  33. if(navigator.appName == "Netscape")
  34. {
  35. year = 1900 + year;
  36. }
  37. //-->
  38. if(type=="day")
  39. {
  40. begintime = year.toString() + "-" + fillstring(month.toString()) + "-" + fillstring(date.toString());
  41. endtime = begintime;
  42. }
  43. else if(type=="week")
  44. {
  45. var daytoMon = day-1;
  46. if(day==0) 
  47. daytoMon = 6;
  48. todayDate.setTime(todayDate.getTime()-daytoMon*oneday);
  49. date = todayDate.getDate();
  50. month= todayDate.getMonth() +1;
  51. year= todayDate.getYear();
  52. day = todayDate.getDay();
  53. begintime = year.toString() + "-" + fillstring(month.toString()) + "-" + fillstring(date.toString());
  54. todayDate.setTime(todayDate.getTime()+6*oneday);
  55. date = todayDate.getDate();
  56. month= todayDate.getMonth() +1;
  57. year= todayDate.getYear();
  58. endtime = year.toString() + "-" + fillstring(month.toString()) + "-" + fillstring(date.toString());
  59. }
  60. else if(type=="month")
  61. {
  62. var dateto1 = date-1;
  63. todayDate.setTime(todayDate.getTime()-dateto1*oneday);
  64. date = todayDate.getDate();
  65. month= todayDate.getMonth() +1;
  66. year= todayDate.getYear();
  67. day = todayDate.getDay();
  68. begintime = year.toString() + "-" + fillstring(month.toString()) + "-" + fillstring(date.toString());
  69. todayDate.setMonth(month);
  70. todayDate.setTime(todayDate.getTime()-oneday);
  71. date = todayDate.getDate();
  72. month= todayDate.getMonth() +1;
  73. year= todayDate.getYear();
  74. endtime = year.toString() + "-" + fillstring(month.toString()) + "-" + fillstring(date.toString());
  75. }
  76. document.getElementById("tbx_begintime").value = begintime;
  77. document.getElementById("tbx_endtime").value = endtime;
  78. }
  79. </script>
  80. </HEAD>
  81. <body MS_POSITIONING="GridLayout">
  82. <form id="Contact_Client" method="post" runat="server">
  83. <FONT face="宋体">
  84. <TABLE id="Table1" cellSpacing="1" cellPadding="1" width="100%" border="1">
  85. <TR>
  86. <TD>开始时间
  87. <asp:textbox id="tbx_begintime" onfocus="setday(this);" runat="server" ReadOnly="True"></asp:textbox>&nbsp;
  88. <asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ControlToValidate="tbx_begintime" Display="Dynamic"
  89. ErrorMessage="*"></asp:requiredfieldvalidator>结束时间
  90. <asp:textbox id="tbx_endtime" onfocus="setday(this);" runat="server" ReadOnly="True"></asp:textbox>&nbsp;
  91. <asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" ControlToValidate="tbx_endtime" ErrorMessage="*"></asp:requiredfieldvalidator><asp:radiobutton id="rbtn_thisweek" onclick="quickseldate('week');" runat="server" GroupName="quickselect"
  92. Text="本周"></asp:radiobutton><asp:radiobutton id="rbtn_thismonth" onclick="quickseldate('month');" runat="server" GroupName="quickselect"
  93. Text="本月"></asp:radiobutton>&nbsp;
  94. <asp:Button id="btn_OK" runat="server" Text="确定" CssClass="redbuttoncss" Width="48px"></asp:Button></TD>
  95. </TR>
  96. <TR>
  97. <TD align="center">
  98. <TABLE id="Table2" cellSpacing="1" cellPadding="1" width="100%" border="1">
  99. <TR>
  100. <TD style="WIDTH: 248px" align="center" bgColor="beige">明细</TD>
  101. <TD align="center" bgColor="#f5f5dc" colSpan="" rowSpan="">点击数字查看详情</TD>
  102. <TD style="WIDTH: 274px" align="center" bgColor="#f5f5dc" colSpan="" rowSpan="">明细</TD>
  103. <TD align="center" bgColor="#f5f5dc" colSpan="" rowSpan="">点击数字查看详情</TD>
  104. </TR>
  105. <TR>
  106. <TD style="WIDTH: 248px">添加接触记录的销售人员数:</TD>
  107. <TD><A onclick="javascript:window.open('sellman.aspx?begintime='+document.Contact_Client.tbx_begintime.value+'&amp;endtime='+document.Contact_Client.tbx_endtime.value),'_blank'"
  108. href="#"><asp:literal id="ltl_AddContactSellman" runat="server"></asp:literal></A>
  109. </TD>
  110. <TD style="WIDTH: 274px">接触总数:
  111. </TD>
  112. <TD><A onclick="javascript:window.open('contactedclient.aspx?type=ac&amp;begintime='+document.Contact_Client.tbx_begintime.value+'&amp;endtime='+document.Contact_Client.tbx_endtime.value),'_blank'"
  113. href="#"><asp:literal id="ltl_Contact" runat="server"></asp:literal></A></TD>
  114. </TR>
  115. <TR>
  116. <TD style="WIDTH: 248px">拜访客户次数:
  117. </TD>
  118. <TD><A onclick="javascript:window.open('contactedclient.aspx?type=cc&amp;begintime='+document.Contact_Client.tbx_begintime.value+'&amp;endtime='+document.Contact_Client.tbx_endtime.value),'_blank'"
  119. href="#"><asp:literal id="ltl_CallinContact" runat="server"></asp:literal></A></TD>
  120. <TD style="WIDTH: 274px">新发现客户数:</TD>
  121. <TD><A onclick="javascript:window.open('contactedclient.aspx?type=nc&amp;begintime='+document.Contact_Client.tbx_begintime.value+'&amp;endtime='+document.Contact_Client.tbx_endtime.value),'_blank'"
  122. href="#">
  123. <asp:literal id="ltl_NewClient" runat="server"></asp:literal></A></TD>
  124. </TR>
  125. <TR>
  126. <TD style="WIDTH: 248px">进入商务谈判的客户数(新):</TD>
  127. <TD><A onclick="javascript:window.open('contactedclient.aspx?type=neonc&amp;begintime='+document.Contact_Client.tbx_begintime.value+'&amp;endtime='+document.Contact_Client.tbx_endtime.value),'_blank'"
  128. href="#">
  129. <asp:literal id="ltl_NegotiateClient_New" runat="server"></asp:literal></A></TD>
  130. <TD style="WIDTH: 274px">3星以上的客户数量(新):</TD>
  131. <TD><A onclick="javascript:window.open('contactedclient.aspx?type=n3c&amp;begintime='+document.Contact_Client.tbx_begintime.value+'&amp;endtime='+document.Contact_Client.tbx_endtime.value),'_blank'"
  132. href="#">
  133. <asp:literal id="ltl_New3Client_New" runat="server"></asp:literal></A></TD>
  134. </TR>
  135. <TR>
  136. <TD style="WIDTH: 248px">进入商务谈判的客户数(总):</TD>
  137. <TD><A onclick="javascript:window.open('contactedclient.aspx?type=neoc&amp;begintime='+document.Contact_Client.tbx_begintime.value+'&amp;endtime='+document.Contact_Client.tbx_endtime.value),'_blank'"
  138. href="#">
  139. <asp:literal id="ltl_NegotiateClient_Total" runat="server"></asp:literal></A></TD>
  140. <TD style="WIDTH: 274px">3星以上的客户数量(总):</TD>
  141. <TD><A onclick="javascript:window.open('contactedclient.aspx?type=3c&amp;begintime='+document.Contact_Client.tbx_begintime.value+'&amp;endtime='+document.Contact_Client.tbx_endtime.value),'_blank'"
  142. href="#">
  143. <asp:literal id="ltl_New3Client_Total" runat="server"></asp:literal></A></TD>
  144. </TR>
  145. <TR>
  146. <TD style="WIDTH: 248px">发生费用总数:</TD>
  147. <TD><A onclick="javascript:window.open('fee.aspx?type=client&amp;begintime='+document.Contact_Client.tbx_begintime.value+'&amp;endtime='+document.Contact_Client.tbx_endtime.value),'_blank'"
  148. href="#">
  149. <asp:literal id="ltl_Fee" runat="server"></asp:literal></A></TD>
  150. <TD style="WIDTH: 274px">发生费用次数:</TD>
  151. <TD><A onclick="javascript:window.open('fee.aspx?type=sellman&amp;begintime='+document.Contact_Client.tbx_begintime.value+'&amp;endtime='+document.Contact_Client.tbx_endtime.value),'_blank'"
  152. href="#">
  153. <asp:literal id="ltl_FeeTimes" runat="server"></asp:literal></A></TD>
  154. </TR>
  155. <TR>
  156. <TD style="WIDTH: 248px">发生费用客户数:</TD>
  157. <TD><A onclick="javascript:window.open('fee.aspx?type=client&amp;begintime='+document.Contact_Client.tbx_begintime.value+'&amp;endtime='+document.Contact_Client.tbx_endtime.value),'_blank'"
  158. href="#">
  159. <asp:literal id="ltl_FeeClient" runat="server"></asp:literal></A></TD>
  160. <TD style="WIDTH: 274px">发生费用销售人员数:</TD>
  161. <TD><A onclick="javascript:window.open('fee.aspx?type=sellman&amp;begintime='+document.Contact_Client.tbx_begintime.value+'&amp;endtime='+document.Contact_Client.tbx_endtime.value),'_blank'"
  162. href="#">
  163. <asp:literal id="ltl_FeeSellman" runat="server"></asp:literal></A></TD>
  164. </TR>
  165. </TABLE>
  166. &nbsp;&nbsp;
  167. </TD>
  168. </TR>
  169. </TABLE>
  170. </FONT>
  171. </form>
  172. </body>
  173. </HTML>