Web/RPT/RPT_IN.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 RPT_IN : 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());
                BindData();
                Label_Person.Text = "制表人:" + Session["UserName"].ToString();
                Label_Time.Text = "制表时间:" + DateTime.Now.ToShortDateString();
            }
            SetGV();

        }


        void SetGV()
        {
            try
            {
                AECS.BLL.car iCAR = new BLL.car();
                AECS.BLL.employer iEMP = new BLL.employer();
                for (int i = 0; i < gridView.Rows.Count; i++)
                {
                    gridView.Rows[i].Cells[0].Text = iCAR.GetModel(int.Parse(gridView.Rows[i].Cells[0].Text)).Car_name;//.Tables[0].Rows[0].ItemArray[1].ToString();
                    gridView.Rows[i].Cells[4].Text = iEMP.GetModel(int.Parse(gridView.Rows[i].Cells[4].Text)).Emp_name;
                    gridView.Rows[i].Cells[3].Text = gridView.Rows[i].Cells[3].Text.Split(' ')[0];
                    if (gridView.Rows[i].Cells[1].Text.Contains("-"))
                    {
                        gridView.Rows[i].Cells[1].ForeColor = Color.Red;
                    }
                    else
                    {
                        gridView.Rows[i].Cells[1].ForeColor = Color.Black;
                    }
                }
            }
            catch (Exception ee) { }
        }

        protected void btnSearch_Click(object sender, EventArgs e)
        {
后面还有 158 行代码,购买后查看完整代码

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

AI 解读 AI

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

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