⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clientlist.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.WebSite.Admin.Crm
{
    using PowerEasy.Controls;
    using PowerEasy.Crm;
    using PowerEasy.Model.Crm;
    using PowerEasy.Web.UI;
    using System;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public class ClientList : AdminPage
    {
        protected Button BtnSearch;
        protected ExtendedGridView EgvClientList;
        protected HtmlForm form1;
        protected ObjectDataSource OdsClientList;
        protected TextBox TxtKeyWord;

        protected void EgvClientList_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                ClientInfo dataItem = e.Row.DataItem as ClientInfo;
                e.Row.Cells[1].Text = "<a href='#' onclick=\"ReturnValue('" + dataItem.ClientName + "','" + dataItem.ClientId.ToString() + "')\">" + dataItem.ShortedForm + "</a>";
                e.Row.Cells[2].Text = "<a href='#' onclick=\"ReturnValue('" + dataItem.ClientName + "','" + dataItem.ClientId.ToString() + "')\">" + dataItem.ClientName + "</a>";
                e.Row.Cells[3].Text = Client.GetClientTypeName(dataItem.ClientType);
                e.Row.Cells[4].Text = Client.GetClientGroupName(dataItem.GroupId);
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            string str = BasePage.RequestString("OpenerText");
            string str2 = BasePage.RequestString("OpenerKey");
            if (!base.ClientScript.IsStartupScriptRegistered("ReturnValue"))
            {
                string script = "<script type='text/javascript'>";
                script = (((script + "function ReturnValue(strText ,strValue)") + "{window.opener.document.getElementById('" + str2 + "').value=strValue;") + "window.opener.document.getElementById('" + str + "').value=strText;") + "window.close();}" + "</script>";
                base.ClientScript.RegisterStartupScript(base.GetType(), "ReturnValue", script);
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -