📄 billinvestform.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Common;
namespace HomeMoney
{
public partial class BillInvestForm : Form
{
private DataSet dsCurrent;
private BillInvest billCurrent = new BillInvest();
private bool formEnable = false;
public bool FormEnable
{
get { return formEnable; }
set { formEnable = value; }
}
public BillInvest BillCurrent
{
get { return billCurrent; }
}
public BillInvestForm()
{
InitializeComponent();
}
private void BillInvestForm_Load(object sender, EventArgs e)
{
dsCurrent = new Business.ClassInfoManager().GetClassInfos();
DataView dw = dsCurrent.Tables[0].DefaultView;
dw.RowFilter = "LEN(CBIItem)>0";
this.cbBIItem.DataSource = dw;
this.cbBIItem.ValueMember = "CBIItem";
}
private void btnOk_Click(object sender, EventArgs e)
{
BillCurrent.BIDate=this.dtBIDate.Value;
BillCurrent.BICode=this.cbBICode.SelectedItem.ToString();
BillCurrent.BIName=this.cbBIName.SelectedItem.ToString();
BillCurrent.BICopys=Convert.ToInt32(this.txtBICopys.Text);
BillCurrent.BIPrice=Convert.ToSingle(this.txtPrice.Text);
BillCurrent.BRemarks=this.txtBIRemark.Text;
BillCurrent.BIType=this.cbBIType.SelectedItem.ToString();
BillCurrent.BIItem =this.cbBIItem.SelectedValue.ToString();
this.formEnable = true;
this.Close();
}
private void btnCancel_Click(object sender, EventArgs e)
{
this.formEnable = false;
this.Close();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -