汽车维修管理系统/DoPage/InputParts.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 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 InputParts : System.Web.UI.Page
{
datadeal deal = new datadeal();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
storepartbind();
}
}
protected void storepartbind()
{
GridViewInputParts.DataSource = deal.storepartbind().Tables[0].DefaultView;
GridViewInputParts.DataBind();
if (GridViewInputParts.Rows.Count>0)
{
TableCell oldcell = GridViewInputParts.Rows[0].Cells[0];
for (int i = 1; i < GridViewInputParts.Rows.Count; i++)
{
TableCell newscell = GridViewInputParts.Rows[i].Cells[0];
if (oldcell.Text == newscell.Text)
{
newscell.Visible = false;
if (oldcell.RowSpan == 0)
{
oldcell.RowSpan = 1;
}
oldcell.RowSpan++;
oldcell.VerticalAlign = VerticalAlign.Middle;
// oldcell.BackColor = System.Drawing.Color.White;
}
else
{
oldcell = newscell;
}
}
}
}
protected void ButtonOK_Click(object sender, EventArgs e)
{
object inputepartcount = deal.checkPartcount(TextBoxName.Text.Trim().ToString(), TextBoxType.Text.Trim().ToString());
object inputpartid = deal.checkPartid(TextBoxName.Text.Trim().ToString(), TextBoxType.Text.Trim().ToString());
if (inputepartcount == null && inputpartid == null)
{
string type = TextBoxType.Text.Trim().ToString();
string name = TextBoxName.Text.Trim().ToString();
后面还有 28 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
