Web/Stock/List.aspx.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Data;
using Maticsoft.Common;
using System.Drawing;
using LTP.Accounts.Bus;
namespace AECS.Web.Stock
{
    public partial class List : Page
    {



        AECS.BLL.Stock bll = new AECS.BLL.Stock();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                gridView.BorderColor = ColorTranslator.FromHtml(Application[Session["Style"].ToString() + "xtable_bordercolorlight"].ToString());
                gridView.HeaderStyle.BackColor = ColorTranslator.FromHtml(Application[Session["Style"].ToString() + "xtable_titlebgcolor"].ToString());
                btnDelete.Attributes.Add("onclick", "return confirm(\"你确认要删除吗?\")");
                BindData();
            }
            SetGV();

        }


        void SetGV()
        {
            try
            {
                AECS.BLL.car iCAR = new BLL.car();
                for (int i = 0; i < gridView.Rows.Count; i++)
                {
                    gridView.Rows[i].Cells[1].Text = iCAR.GetList("CAR_NO = " + gridView.Rows[i].Cells[1].Text).Tables[0].Rows[0].ItemArray[1].ToString();
                    if (gridView.Rows[i].Cells[2].Text.Contains("-"))
                    {
                        gridView.Rows[i].Cells[2].ForeColor = Color.Red;
                    }
                    else
                    {
                        gridView.Rows[i].Cells[2].ForeColor = Color.Black;
                    }

                    if (gridView.Rows[i].Cells[3].Text.Contains("进货"))
                    {
                        gridView.Rows[i].Cells[3].ForeColor = Color.Green;
                    }
                    if (gridView.Rows[i].Cells[3].Text.Contains("销售"))
                    {
                        gridView.Rows[i].Cells[3].ForeColor = Color.Blue;
                    }
                    if (gridView.Rows[i].Cells[3].Text.Contains("退货"))
                    {
后面还有 160 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。