frmleavmoney.cs
来自「财务凭证管理系统,主要是从事公司或部门的财务方面的管理。此系统给会计人员带来很大」· CS 代码 · 共 65 行
CS
65 行
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using property.control.Subject;
namespace property.view.HinderInfo
{
public partial class frmLeavMoney : Form
{
public frmLeavMoney()
{
InitializeComponent();
}
public int P_int_money = 0;
private void button1_Click(object sender, EventArgs e)
{
FinSubject fi = new FinSubject();
string P_str_money=fi.GetsubjectZhangmu(this.dataGridView1,"b");
if(P_str_money=="OK")
{
P_int_money = 1;
return;
}
if(P_str_money=="NO")
{
MessageBox.Show("现在还没有结算,没有账目余额");
return;
}
if (P_str_money == "Error")
{
MessageBox.Show("系统错误");
}
}
private void frmLeavMoney_Load(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
if (P_int_money == 1)
{
frmLeaveMoneyPrint ft = new frmLeaveMoneyPrint();
ft.Show();
P_int_money = 0;
}
else { MessageBox.Show("请先查看余额"); }
}
private void button3_Click(object sender, EventArgs e)
{
DialogResult a = MessageBox.Show("是否要退出?", "退出", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (Convert.ToString(a) == "Yes")
{
this.Close();
}// end
}// end
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?