财务管理/收费单维护/UpdataMoney.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApplication1;
namespace PropertyManagementSystem.财务管理.收费单维护
{
public partial class UpdataMoney : Form
{
public UpdataMoney()
{
InitializeComponent();
}
private DataGridView dv;
private MoneyDan md;
public UpdataMoney(DataGridView data, MoneyDan word)
{
InitializeComponent();
dv = data;
md = word;
}
private void UpdataForm_Load(object sender, EventArgs e)
{
this.txtID.Text = dv.SelectedRows[0].Cells["chargeID"].Value.ToString();
this.txtName.Text = dv.SelectedRows[0].Cells["chargeName"].Value.ToString();
this.txtPrice.Text = dv.SelectedRows[0].Cells["unitPrice"].Value.ToString();
this.txtTotlPrice.Text = dv.SelectedRows[0].Cells["totalPrice"].Value.ToString();
this.txtType.Text = dv.SelectedRows[0].Cells["chargeType"].Value.ToString();
this.txtOwer.Text = dv.SelectedRows[0].Cells["owenrName"].Value.ToString();
this.txtDate.Text = dv.SelectedRows[0].Cells["data"].Value.ToString();
}
private void button2_Click(object sender, EventArgs e)
{
this.Close();
}
private void button1_Click(object sender, EventArgs e)
{
string di = dv.SelectedRows[0].Cells["ID"].Value.ToString();
string id = this.txtID.Text;
string name =this.txtName.Text ;
string price = this.txtPrice.Text;
string toPrice = this.txtTotlPrice.Text;
string tyoe = this.txtType.Text;
string owerName = this.txtOwer.Text;
string data = this.txtDate.Text;
if (id == ""||name == ""|| price == ""||toPrice== ""||tyoe==""||owerName== ""||data=="")
{
MessageBox.Show("请完善所有信息!","提示",MessageBoxButtons.OK,MessageBoxIcon.Exclamation);
}
else
{
try
后面还有 18 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
