📄 myquestions.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyQuestions.aspx.cs" Inherits="PowerEasy.WebSite.User.Crm.MyQuestions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>我的问题</title>
</head>
<body>
<pe:UserNavigation ID="UserCenterNavigation" runat="server" Tab="shop" />
<pe:ExtendedSiteMapPath ID="YourPosition" runat="server" SiteMapProvider="UserMapProvider">
</pe:ExtendedSiteMapPath>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<pe:ServiceCenterInfomation ID="ServiceCenterInfomation1" runat="server" />
<br />
<br />
<div style="width: 100%; text-align: left">
<asp:LinkButton ID="LBtnIsReply" runat="server" OnClick="LBtnCommon_Click" CausesValidation="False" CommandArgument="1">已回复但未解决的问题</asp:LinkButton>
| <asp:LinkButton ID="LBtnIsSolved" runat="server" CausesValidation="False" CommandArgument="2" OnClick="LBtnCommon_Click">已解决的问题</asp:LinkButton>
| <asp:LinkButton ID="LBtnAll" runat="server" CausesValidation="False" CommandArgument="0"
OnClick="LBtnCommon_Click">全部问题</asp:LinkButton></div>
</div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<pe:ExtendedGridView ID="EgvMyQuestions" runat="server" AutoGenerateColumns="False" CheckBoxFieldHeaderWidth="3%" DataSourceID="OdsMyQuestions" IsHoldState="True" SerialText="" AllowPaging="True">
<Columns>
<asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="ReplyQuestion.aspx?ID={0}"
DataTextField="QuestionTitle" HeaderText="问题标题">
<itemstyle horizontalalign="Left" />
</asp:HyperLinkField>
<asp:BoundField DataField="QuestionCreateTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}"
HeaderText="提问时间" HtmlEncode="False" SortExpression="QuestionCreateTime" >
<headerstyle width="15%" />
</asp:BoundField>
<asp:BoundField DataField="ReplyTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}"
HeaderText="回复时间" HtmlEncode="False" SortExpression="ReplyTime" >
<headerstyle width="15%" />
</asp:BoundField>
<asp:TemplateField HeaderText="已回复" SortExpression="IsReply">
<headerstyle width="5%" />
<itemtemplate>
<%# (bool)Eval("IsReply") ? "<span style='color:green'><b>√</b></span>" : "<span style='color:red'><b>×</b></span>"%>
</itemtemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="已解决" SortExpression="IsSolved">
<headerstyle width="5%" />
<itemtemplate>
<%# (bool)Eval("IsSolved") ? "<span style='color:green'><b>√</b></span>" : "<span style='color:red'><b>×</b></span>"%>
</itemtemplate>
</asp:TemplateField>
</Columns>
</pe:ExtendedGridView>
</ContentTemplate>
</asp:UpdatePanel>
<asp:HiddenField ID="HdnUserName" runat="server" />
<asp:ObjectDataSource ID="OdsMyQuestions" runat="server" SelectMethod="GetQuestonsByUser" TypeName="PowerEasy.Crm.Question" EnablePaging="True" SelectCountMethod="GetQuestionTotal">
<SelectParameters>
<asp:ControlParameter ControlID="HdnUserName" Name="userName" PropertyName="Value"
Type="String" />
<asp:ControlParameter ControlID="HdnSearchType" Name="searchType" PropertyName="Value"
Type="Int32" DefaultValue="0" />
<asp:ControlParameter ControlID="TxtSearchContent" Name="keyword" PropertyName="Text"
Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:HiddenField ID="HdnSearchType" runat="server" />
<table border="0" cellpadding="0" cellspacing="0" class="border" style="margin-top: 5px;
width: 100%">
<tr class="tdbg">
<td align="left" style="height: 30px">
<strong> 查找我提交的问题:
</strong>
<asp:TextBox ID="TxtSearchContent" runat="server" Width="346px" AutoCompleteType="Search" onfocus="select()" ValidationGroup="seach">关键字</asp:TextBox>
<asp:Button ID="BtnSubmit" runat="server" EnableViewState="False" OnClick="BtnSubmit_Click"
Text="查找" UseSubmitBehavior="False" ValidationGroup="seach" />
<pe:RequiredFieldValidator ID="ValrSearchContent" runat="server" ControlToValidate="TxtSearchContent"
Display="Dynamic" ErrorMessage="请输入问题标题的关键字!" InitialValue="关键字" SetFocusOnError="True" ValidationGroup="seach"></pe:RequiredFieldValidator></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -