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

📄 usershow.aspx.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
📖 第 1 页 / 共 4 页
字号:
            {
                this.InfoTabTitle5.Visible = true;
                this.InfoTabTitle6.Visible = true;
                this.InfoTabTitle7.Visible = true;
            }
        }

        private void CompanySet(UserInfo usersInfo)
        {
            if (usersInfo.CompanyId > 0)
            {
                if (usersInfo.UserType > UserType.Persional)
                {
                    this.m_ShowCompanyInfo = true;
                }
                else
                {
                    this.m_ShowCompanyInfo = false;
                }
            }
            else
            {
                this.m_ShowCompanyInfo = false;
            }
            if (usersInfo.ClientId > 0)
            {
                this.EBtnRegClient.Visible = false;
            }
            if (this.m_ShowCompanyInfo)
            {
                this.CompanyInfo1.CompanyId = usersInfo.CompanyId;
                this.CompanyMemberManage1.CompanyId = usersInfo.CompanyId;
                this.CompanyMemberManage1.UserType = UserType.Creator;
                this.CompanyMemberManage1.UserId = usersInfo.UserId;
            }
        }

        private static Table CreateTable(string rowOneText, string rowTwoText, string align)
        {
            Table table = new Table();
            table.Width = Unit.Percentage(100.0);
            TableRow row = new TableRow();
            TableCell cell = new TableCell();
            cell.Attributes.Add("align", align);
            row.Cells.Add(cell);
            TableRow row2 = new TableRow();
            TableCell cell2 = new TableCell();
            cell2.Attributes.Add("align", align);
            row2.Cells.Add(cell2);
            table.Rows.Add(row);
            table.Rows.Add(row2);
            table.Rows[0].Cells[0].Text = rowOneText;
            table.Rows[1].Cells[0].Text = rowTwoText;
            return table;
        }

        protected void EBtnRegClient_Click(object sender, EventArgs e)
        {
            BasePage.ResponseRedirect("RegClient.aspx?UserID=" + this.userId);
        }

        protected void EBtnRegCompany_Click(object sender, EventArgs e)
        {
            BasePage.ResponseRedirect("RegCompany.aspx?UserID=" + this.userId);
        }

        protected void EgvAgentOrders_DataBound(object sender, EventArgs e)
        {
            if (this.EgvAgentOrders.Rows.Count > 0)
            {
                GridViewRow footerRow = this.EgvAgentOrders.FooterRow;
                ArrayList totalofMoneyAndReceiptByAgentName = Order.GetTotalofMoneyAndReceiptByAgentName(this.userName);
                footerRow.CssClass = this.EgvAgentOrders.RowStyle.CssClass;
                while (footerRow.Cells.Count != 4)
                {
                    footerRow.Cells.RemoveAt(0);
                }
                footerRow.Cells[0].ColumnSpan = 4;
                footerRow.Cells[3].ColumnSpan = 5;
                footerRow.HorizontalAlign = HorizontalAlign.Right;
                footerRow.Cells[0].Text = "本页合计:<br />总计金额:";
                footerRow.Cells[1].Text = this.m_MoneyTotal.ToString("0.00") + "<br />" + DataConverter.CDecimal(totalofMoneyAndReceiptByAgentName[0]).ToString("0.00");
                footerRow.Cells[2].Text = this.m_MoneyReceipt.ToString("0.00") + "<br />" + DataConverter.CDecimal(totalofMoneyAndReceiptByAgentName[1]).ToString("0.00");
            }
        }

        protected void EgvAgentOrders_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                OrderInfo dataItem = (OrderInfo) e.Row.DataItem;
                Label label = e.Row.FindControl("LblStatus") as Label;
                Label label2 = e.Row.FindControl("LblPaymentStatus") as Label;
                Label label3 = e.Row.FindControl("LblDeliverStatus") as Label;
                label.Text = BasePage.EnumToHtml<OrderStatus>(dataItem.Status);
                label2.Text = BasePage.EnumToHtml<PayStatus>(Order.GetPayStatus(dataItem));
                label3.Text = BasePage.EnumToHtml<DeliverStatus>(dataItem.DeliverStatus);
                this.m_MoneyReceipt += dataItem.MoneyReceipt;
                this.m_MoneyTotal += dataItem.MoneyTotal;
            }
        }

        protected void EgvBankrollItem_DataBound(object sender, EventArgs e)
        {
            if (this.EgvBankrollItem.Rows.Count > 0)
            {
                GridViewRow footerRow = this.EgvBankrollItem.FooterRow;
                while (footerRow.Cells.Count != 4)
                {
                    footerRow.Cells.RemoveAt(0);
                }
                footerRow.CssClass = this.EgvBankrollItem.RowStyle.CssClass;
                ArrayList totalInComeAndPayOutAll = BankrollItem.GetTotalInComeAndPayOutAll(this.userName);
                decimal num = DataConverter.CDecimal(totalInComeAndPayOutAll[0]);
                decimal num2 = DataConverter.CDecimal(totalInComeAndPayOutAll[1]);
                footerRow.HorizontalAlign = HorizontalAlign.Right;
                footerRow.Cells[0].ColumnSpan = 3;
                footerRow.Cells[3].ColumnSpan = 3;
                footerRow.Cells[0].Text = "本页合计:<br/>总计金额:";
                footerRow.Cells[1].Text = this.m_CurrentPageIncome.ToString("N2") + "<br/>" + num.ToString("N2");
                footerRow.Cells[2].Text = Math.Abs(this.m_CurrentPagePayout).ToString("N2") + "<br/>" + Math.Abs(num2).ToString("N2");
                footerRow.Cells[3].HorizontalAlign = HorizontalAlign.Center;
                footerRow.Cells[3].Text = "&nbsp;<br />资金余额:" + ((num + num2)).ToString("N2");
            }
        }

        protected void EgvBankrollItem_RowCommand(object sender, CommandEventArgs e)
        {
            if ((e.CommandName == "Confirm") && BankrollItem.Confirm(DataConverter.CLng(e.CommandArgument), BankrollItemStatus.Confirm))
            {
                this.EgvBankrollItem.DataBind();
            }
        }

        protected void EgvBankrollItem_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                BankrollItemInfo dataItem = e.Row.DataItem as BankrollItemInfo;
                if (dataItem != null)
                {
                    if (dataItem.Status == BankrollItemStatus.Confirm)
                    {
                        if (dataItem.Money > 0M)
                        {
                            this.m_CurrentPageIncome += dataItem.Money;
                        }
                        else
                        {
                            this.m_CurrentPagePayout += dataItem.Money;
                        }
                    }
                    Label label = e.Row.FindControl("LblRemark") as Label;
                    if (label != null)
                    {
                        dataItem.Remark = DataSecurity.HtmlDecode(dataItem.Remark);
                        label.Text = StringHelper.SubString(dataItem.Remark, 40, "...");
                        label.ToolTip = dataItem.Remark;
                    }
                }
            }
        }

        protected void EgvBill_OnDataBound(object sender, EventArgs e)
        {
            if (this.EgvBill.Rows.Count > 0)
            {
                GridViewRow footerRow = this.EgvBill.FooterRow;
                while (footerRow.Cells.Count != 4)
                {
                    footerRow.Cells.RemoveAt(0);
                }
                footerRow.HorizontalAlign = HorizontalAlign.Right;
                footerRow.Cells[0].ColumnSpan = 2;
                ArrayList totalInComeAndPayOutAll = BankrollItem.GetTotalInComeAndPayOutAll(this.userName);
                double num = DataConverter.CDouble(totalInComeAndPayOutAll[0]);
                double num2 = DataConverter.CDouble(totalInComeAndPayOutAll[1]);
                footerRow.Cells[0].Text = "本页合计:<br/>总计金额:";
                footerRow.Cells[1].Text = this.m_TotalIncome.ToString("0.00") + "<br />" + num.ToString("0.00");
                footerRow.Cells[2].Text = Math.Abs(this.m_TotalPayout).ToString("0.00") + "<br />" + Math.Abs(num2).ToString("0.00");
                footerRow.Cells[3].Text = "<br />资金余额:" + ((num + num2)).ToString("0.00");
            }
        }

        protected void EgvBill_OnRowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                DataRowView dataItem = e.Row.DataItem as DataRowView;
                decimal num = (decimal) dataItem["Money"];
                if (num > 0M)
                {
                    this.m_TotalIncome += num;
                }
                else
                {
                    this.m_TotalPayout += num;
                }
                Label label = e.Row.FindControl("LblRecieveMoney") as Label;
                Label label2 = e.Row.FindControl("LblPayoutMoney") as Label;
                if ((label != null) && (num > 0M))
                {
                    label.Text = num.ToString("0.00");
                }
                if ((label2 != null) && (num < 0M))
                {
                    label2.Text = Math.Abs(num).ToString("0.00");
                }
            }
        }

        protected void EgvComplain_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                ComplainItemInfo dataItem = e.Row.DataItem as ComplainItemInfo;
                e.Row.Cells[2].Text = Complain.GetFiledNameById("ComplainType", dataItem.ComplainType);
                e.Row.Cells[4].Text = Complain.GetFiledNameById("MagnitudeOfExigence", dataItem.MagnitudeOfExigence);
                e.Row.Cells[5].Text = Complain.GetStatus(dataItem.Status);
            }
        }

        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);

⌨️ 快捷键说明

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