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

📄 clientshow.aspx.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
📖 第 1 页 / 共 3 页
字号:
                        dataItem.Remark = DataSecurity.HtmlDecode(dataItem.Remark);
                        label.Text = StringHelper.SubString(dataItem.Remark, 40, "...");
                        label.ToolTip = dataItem.Remark;
                    }
                }
            }
        }

        protected void EgvOrder_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                OrderInfo dataItem = e.Row.DataItem as OrderInfo;
                Label label = (Label) e.Row.FindControl("LblOrderStatus");
                Label label2 = (Label) e.Row.FindControl("LblPayStatus");
                Label label3 = (Label) e.Row.FindControl("LblDeliverStatus");
                label.Text = BasePage.EnumToHtml<OrderStatus>(dataItem.Status);
                label3.Text = BasePage.EnumToHtml<DeliverStatus>(dataItem.DeliverStatus);
                switch (Order.GetPayStatus(dataItem))
                {
                    case PayStatus.WaitForPay:
                        label2.Text = BasePage.EnumToHtml<PayStatus>(PayStatus.WaitForPay);
                        return;

                    case PayStatus.ReceivedEarnest:
                        label2.Text = BasePage.EnumToHtml<PayStatus>(PayStatus.ReceivedEarnest);
                        return;

                    case PayStatus.Payoff:
                        label2.Text = BasePage.EnumToHtml<PayStatus>(PayStatus.Payoff);
                        return;

                    default:
                        return;
                }
            }
        }

        protected void EgvUser_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            UserInfo dataItem = (UserInfo) e.Row.DataItem;
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                Label label = (Label) e.Row.FindControl("LblValidNum");
                Label label2 = (Label) e.Row.FindControl("LblStatus");
                label2.Text = BasePage.EnumToHtml<UserStatus>(dataItem.Status);
                label.Text = Users.GetValidNum(dataItem.EndTime);
            }
        }

        protected string GetComplainType(int complainType)
        {
            return Complain.GetFiledNameById("ComplainType", complainType);
        }

        protected string GetConfirmScore(int confirmScore)
        {
            return Service.GetFiledNameById("ConfirmScore", confirmScore);
        }

        protected string GetCurrencyType(object type)
        {
            return BankrollItem.GetCurrencyType(type);
        }

        protected string GetInvoiceType(int invoiceType)
        {
            return Invoice.GetInvoiceType(invoiceType);
        }

        protected string GetMagnitudeOfExigence(int magnitudeOfExigence)
        {
            return Complain.GetFiledNameById("MagnitudeOfExigence", magnitudeOfExigence);
        }

        protected string GetMoneyType(object type)
        {
            return BankrollItem.GetMoneyType(type);
        }

        protected PayPlatformInfo GetPayPlatformById(int payPlatformId)
        {
            return PayPlatform.GetPayPlatformById(payPlatformId);
        }

        protected string GetResult(int result)
        {
            return Service.GetFiledNameById("Result", result);
        }

        protected string GetServiceMode(int serviceMode)
        {
            return Service.GetFiledNameById("ServiceMode", serviceMode);
        }

        protected string GetServiceType(int serviceType)
        {
            return Service.GetFiledNameById("ServiceType", serviceType);
        }

        protected string GetStatus(int status)
        {
            return Complain.GetStatus(status);
        }

        protected string IsShow(int condition)
        {
            string str = "";
            if (DataConverter.CLng(this.HdnClientType.Value) != condition)
            {
                str = "display:none";
            }
            return str;
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            this.m_ClientId = BasePage.RequestInt32("ClientID");
            this.HdnClientId.Value = this.m_ClientId.ToString();
            this.ShowInfoInitialize(BasePage.RequestInt32("InfoType"));
            if (!this.Page.IsPostBack)
            {
                if (this.m_ClientId == 0)
                {
                    AdminPage.WriteErrMsg("客户ID不能为空!", "ClientManage.aspx");
                }
                else
                {
                    this.ShowInitialize();
                }
            }
        }

        private void ShowInfoInitialize(int infoType)
        {
            if (infoType == 0)
            {
                this.OdsInfo.TypeName = "PowerEasy.Crm.Contacter";
                this.OdsInfo.SelectMethod = "GetList";
                this.OdsInfo.StartRowIndexParameterName = "startRowIndexId";
                this.OdsInfo.MaximumRowsParameterName = "maxNumberRows";
                this.OdsInfo.SelectCountMethod = "GetTotalOfContacter";
                if (!this.Page.IsPostBack)
                {
                    this.InfoTabTitle0.Attributes.Add("class", "titlemouseover");
                    this.OdsInfo.SelectParameters.Add("searchType", TypeCode.String, "6");
                    this.OdsInfo.SelectParameters.Add("keyword", TypeCode.String, this.m_ClientId.ToString());
                    this.EgvContacter.DataSourceID = "OdsInfo";
                    this.EgvContacter.DataBind();
                    this.EgvContacter.Visible = true;
                }
            }
            else
            {
                this.InfoTabTitle0.Attributes.Add("onclick", "window.location.href='ClientShow.aspx?InfoType=0&ClientID=" + this.m_ClientId + "'");
            }
            if (infoType == 1)
            {
                this.OdsInfo.SelectMethod = "GetAllUsers";
                this.OdsInfo.TypeName = "PowerEasy.UserManage.Users";
                this.OdsInfo.SelectCountMethod = "GetNumberOfUsersOnline";
                this.OdsInfo.StartRowIndexParameterName = "startRowIndexId";
                this.OdsInfo.MaximumRowsParameterName = "maxNumberRows";
                if (!this.Page.IsPostBack)
                {
                    this.InfoTabTitle1.Attributes.Add("class", "titlemouseover");
                    this.OdsInfo.SelectParameters.Add("groupId", TypeCode.Int32, "0");
                    this.OdsInfo.SelectParameters.Add("keyword", TypeCode.String, this.m_ClientId.ToString());
                    this.OdsInfo.SelectParameters.Add("listType", TypeCode.Int32, "50");
                    this.EgvUser.DataSourceID = "OdsInfo";
                    this.EgvUser.DataBind();
                    this.EgvUser.Visible = true;
                }
            }
            else
            {
                this.InfoTabTitle1.Attributes.Add("onclick", "window.location.href='ClientShow.aspx?InfoType=1&ClientID=" + this.m_ClientId + "'");
            }
            if (infoType == 2)
            {
                this.OdsInfo.SelectMethod = "GetList";
                this.OdsInfo.TypeName = "PowerEasy.Shop.Order";
                this.OdsInfo.StartRowIndexParameterName = "startRowIndexId";
                this.OdsInfo.MaximumRowsParameterName = "maxNumberRows";
                this.OdsInfo.SelectCountMethod = "GetTotalOfOrder";
                if (!this.Page.IsPostBack)
                {
                    this.InfoTabTitle2.Attributes.Add("class", "titlemouseover");
                    this.OdsInfo.SelectParameters.Add("searchType", TypeCode.String, "15");
                    this.OdsInfo.SelectParameters.Add("field", TypeCode.String, "");
                    this.OdsInfo.SelectParameters.Add("keyword", TypeCode.String, this.m_ClientId.ToString());
                    this.OdsInfo.SelectParameters.Add("action", TypeCode.String, "search");
                    this.EgvOrder.DataSourceID = "OdsInfo";
                    this.EgvOrder.DataBind();
                    this.EgvOrder.Visible = true;
                }
            }
            else
            {
                this.InfoTabTitle2.Attributes.Add("onclick", "window.location.href='ClientShow.aspx?InfoType=2&ClientID=" + this.m_ClientId + "'");
            }
            if (infoType == 3)
            {
                this.OdsInfo.SelectMethod = "GetList";
                this.OdsInfo.TypeName = "PowerEasy.Accessories.BankrollItem";
                this.OdsInfo.StartRowIndexParameterName = "startRowIndex";
                this.OdsInfo.MaximumRowsParameterName = "maximumRows";
                this.OdsInfo.SelectCountMethod = "GetTotalOfBankrollItem";
                if (!this.Page.IsPostBack)

⌨️ 快捷键说明

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