LoginFrame/FrmAddEquipment.cs
(开头部分) 3KB这里只显示每个文件的开头 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 System.IO;
using Model;
using System.Threading;
namespace LoginFrame
{
public partial class FrmAddEquipment : Form
{
public FrmAddEquipment()
{
InitializeComponent();
}
public event GetName getName;
private Equipment equipment = new Equipment();
private void Btn_Add_Click(object sender, EventArgs e)
{
try
{
equipment.orderNumber = Convert.ToInt32(this.txt_orderNumber.Text); //图书库存
}
catch
{
MessageBox.Show("序号请输入正确的格式!");
this.txt_orderNumber.SelectAll();
this.txt_orderNumber.Focus();
return;
}
equipment.fixedAssetsType = this.txt_fixedAssetsType.Text; //固定资产类别
if (this.txt_fixedAssetsName.Text == "")
{
MessageBox.Show("固定资产名称输入不能为空!");
this.txt_fixedAssetsName.Focus();
return;
}
equipment.fixedAssetsName = this.txt_fixedAssetsName.Text; //固定资产名称
equipment.specification = this.txt_specification.Text; //规格型号
if (this.txt_unit.Text == "")
{
MessageBox.Show("计量单位输入不能为空!");
this.txt_unit.Focus();
return;
}
equipment.unit = this.txt_unit.Text; //计量单位
try
{
equipment.total = Convert.ToInt32(this.txt_total.Text); //图书库存
}
catch
{
MessageBox.Show("数量请输入正确的格式!");
this.txt_total.SelectAll();
后面还有 61 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
