private void btnDetail_Click(object sender, EventArgs e) { Form form = new DetailForm(); form.Text = this.GetTitle() + "详细信息"; StudentFeeSearch search = new StudentFeeSearch(); search.Dock = DockStyle.Fill; IDataAccess access = FT.DAL.DataAccessFactory.GetDataAccess(); string condition = access.BetweenDateString("date_fee", this.dateBetweenPanel1.BeginDate, this.dateBetweenPanel1.EndDate); search.SetConditions(condition); form.Controls.Add(search); form.Show(); }
private void ViewFees() { TabPage tb = this.tabControl1.TabPages[2]; if (tb.Controls.Count == 0) { StudentFeeSearch fees = new StudentFeeSearch(); fees.AllowCustomeSearch = false; fees.Dock = DockStyle.Fill; fees.InitBeforeAdd += new ProcessObjectDelegate(fees_InitBeforeAdd); tb.Controls.Add(fees); fees.ClearColumns(); fees.CreateColumn("姓名", 80); fees.CreateColumn("身份证明号码", 120); fees.CreateColumn("费用时间", 140); fees.CreateColumn("费用金额", 80); fees.CreateColumn("费用类别"); // this.Width += 30; fees.SetConditions("c_idcard='" + this.txtIdCard.Text.Trim() + "'"); } }
private void ViewFees() { TabPage tb = this.tabControl1.TabPages[2]; if (tb.Controls.Count == 0) { StudentFeeSearch fees = new StudentFeeSearch(); fees.AllowCustomeSearch = false; fees.Dock = DockStyle.Fill; fees.InitBeforeAdd += new ProcessObjectDelegate(fees_InitBeforeAdd); tb.Controls.Add(fees); fees.ClearColumns(); fees.CreateColumn("����", 80); fees.CreateColumn("���֤������", 120); fees.CreateColumn("����ʱ��", 140); fees.CreateColumn("���ý��", 80); fees.CreateColumn("�������"); // this.Width += 30; fees.SetConditions("c_idcard='" + this.txtIdCard.Text.Trim() + "'"); } }