sellmanclient.aspx
上传用户:jdb8708888
上传日期:2013-05-29
资源大小:19971k
文件大小:4k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

C#

  1. <%@ Import namespace="UDS.Components"  %>
  2. <%@ Import namespace="System.Data.SqlClient"  %>
  3. <%@ Import namespace="System.Data"  %>
  4. <%@ Import namespace="System"%>
  5. <%@ Page language="c#" Codebehind="sellmanclient.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.CM.Stat.sellmanclient" %>
  6. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  7. <HTML>
  8. <HEAD>
  9. <title>sellmanclient</title>
  10. <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
  11. <meta name="CODE_LANGUAGE" Content="C#">
  12. <meta name="vs_defaultClientScript" content="JavaScript">
  13. <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
  14. <LINK href="../../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  15. <script language="C#" runat="server">
  16. private string GetCurStatus(string curstatus)
  17. {
  18. switch(curstatus)
  19. {
  20. case "trace":
  21. return ("跟踪");
  22. break;
  23. case "boot":
  24. return ("启动");
  25. break;
  26. case "commend":
  27. return ("产品推荐");
  28. break;
  29. case "requirement":
  30. return ("需求定义");
  31. break;
  32. case "submit":
  33. return ("方案提交");
  34. break;
  35. case "negotiate":
  36. return ("商务谈判");
  37. break;
  38. case "actualize":
  39. return ("项目实施");
  40. break;
  41. case "traceservice":
  42. return ("跟踪服务");
  43. break;
  44. case "last":
  45. return ("收尾款");
  46. break;
  47. }
  48. return("");
  49. }
  50. private string GetAddMan(DataRow[] row)
  51. {
  52. if(row.Length!=0)
  53. {
  54. return(row[0]["realname"].ToString());
  55. }
  56. else
  57. return ("");
  58. }
  59. </script>
  60. </HEAD>
  61. <body MS_POSITIONING="GridLayout">
  62. <form id="sellmanclient" method="post" runat="server">
  63. <FONT face="宋体">
  64. <TABLE id="Table1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 8px" cellSpacing="1" cellPadding="1" width="100%" border="1">
  65. <TR>
  66. <TD>
  67. <asp:Literal id="ltl_begintime" runat="server"></asp:Literal>
  68. <asp:Literal id="ltl_endtime" runat="server"></asp:Literal>
  69. <asp:Literal id="ltl_clientno" runat="server"></asp:Literal>
  70. <asp:Literal id="ltl_contactno" runat="server"></asp:Literal></TD>
  71. </TR>
  72. <TR>
  73. <TD>
  74. <asp:DataGrid id="dgrd_sellmanclient" runat="server" Width="100%" AutoGenerateColumns="False" AllowPaging="True">
  75. <Columns>
  76. <asp:BoundColumn DataField="ID" SortExpression="ID" HeaderText="编号"></asp:BoundColumn>
  77. <asp:TemplateColumn SortExpression="NAME" HeaderText="客户名称">
  78. <ItemTemplate>
  79. <asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>' NavigateUrl='<%# "Client.aspx?ClientID="+DataBinder.Eval(Container,"DataItem.ID")%>' Target="_blank" ID="Hyperlink1">
  80. </asp:HyperLink>
  81. </ItemTemplate>
  82. </asp:TemplateColumn>
  83. <asp:BoundColumn DataField="ContactTimes" SortExpression="ContactTimes" HeaderText="接触次数"></asp:BoundColumn>
  84. <asp:TemplateColumn HeaderText="成交预估">
  85. <ItemTemplate>
  86. <asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.BargainPrognosis") %>' NavigateUrl='<%# "ClientContact.aspx?ClientID="+DataBinder.Eval(Container,"DataItem.ID")%>' Target="_blank" ID="Hyperlink2">
  87. </asp:HyperLink>
  88. </ItemTemplate>
  89. </asp:TemplateColumn>
  90. <asp:BoundColumn DataField="UpdateTime" SortExpression="UpdateTime" HeaderText="更新时间"></asp:BoundColumn>
  91. <asp:TemplateColumn HeaderText="接触状态">
  92. <ItemTemplate>
  93. <asp:HyperLink runat="server" Text='<%# GetCurStatus(DataBinder.Eval(Container,"DataItem.Curstatus").ToString()) %>' NavigateUrl='<%# "ClientContact.aspx?ClientID="+DataBinder.Eval(Container,"DataItem.ID")%>' ID="Hyperlink3" NAME="Hyperlink2">
  94. </asp:HyperLink>
  95. </ItemTemplate>
  96. </asp:TemplateColumn>
  97. <asp:TemplateColumn HeaderText="添加人">
  98. <ItemTemplate>
  99. <asp:Label runat="server" Text='<%# GetAddMan(((DataRowView)Container.DataItem).Row.GetChildRows("ClientAddMan_Staff")) %>' ID="Label1">
  100. </asp:Label>
  101. </ItemTemplate>
  102. </asp:TemplateColumn>
  103. </Columns>
  104. <PagerStyle NextPageText="上一页" HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
  105. </asp:DataGrid></TD>
  106. </TR>
  107. </TABLE>
  108. </FONT>
  109. </form>
  110. </body>
  111. </HTML>