汽车维修管理系统/DoPage/PartsDetail.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using dao;
namespace 汽车管理系统.DoPage
{
public partial class PartsDetail : System.Web.UI.Page
{
datadeal deal = new datadeal();
protected void Page_Load(object sender, EventArgs e)
{
mergeGridview();
}
protected void mergeGridview()
{
GridViewPartDetail.DataSource = deal.PartsDetail(long.Parse(Request.QueryString["PartsID"])).Tables[0].DefaultView;
GridViewPartDetail.DataBind();
TableCell oldcell = GridViewPartDetail.Rows[0].Cells[0];
TableCell oldcell1 = GridViewPartDetail.Rows[0].Cells[1];
for (int i = 1; i < GridViewPartDetail.Rows.Count; i++)
{
TableCell newscell = GridViewPartDetail.Rows[i].Cells[0];
TableCell newscell1 = GridViewPartDetail.Rows[i].Cells[1];
if (oldcell.Text == newscell.Text)
{
newscell.Visible = false;
if (oldcell.RowSpan == 0)
{
oldcell.RowSpan = 1;
}
oldcell.RowSpan++;
oldcell.VerticalAlign = VerticalAlign.Middle;
}
else
{
oldcell = newscell;
}
//////////////////////////////////////////
if (oldcell1.Text == newscell1.Text)
{
newscell1.Visible = false;
if (oldcell1.RowSpan == 0)
{
oldcell1.RowSpan = 1;
}
oldcell1.RowSpan++;
oldcell1.VerticalAlign = VerticalAlign.Middle;
}
else
{
oldcell1 = newscell1;
}
}
}
protected void ButtonSearch_Click(object sender, EventArgs e)
后面还有 12 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
