ViewController/BookType/BookTypeForm.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BookMIS.Model.BookType;
namespace BookMIS.ViewController.BookType
{
public partial class BookTypeForm : Form
{
public BookTypeForm()
{
InitializeComponent();
}
BookTypeDAO booktypedao = new BookTypeDAOImpl();
BookTypeEntity booktypeet = new BookTypeEntity();
string flag = "";
private void BookTypeForm_Load(object sender, EventArgs e)
{
flag = "insert";
FillLV();
MaxID();
}
public void FillLV()
{
DataTable dt = booktypedao.SelectBookType();
if (dt != null)
{
LVBookType.Items.Clear();
foreach (DataRow dr in dt.Rows)
{
ListViewItem item = new ListViewItem(dr[0].ToString());
item.SubItems.Add(dr[1].ToString());
LVBookType.Items.Add(item);
}
}
}
public void MaxID()
{
string id = booktypedao.MaxTypeID();
if (id == "")
{
txtTypeID.Text = "T001";
}
else
{
txtTypeID.Text = "T" + (Convert.ToInt32(id.Substring(1)) + 1).ToString("000");
}
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
GB.Text = "输入完信息请按保存";
flag = "insert";
后面还有 122 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。