protected override void New() { //base.New(); Finance.frmCertificate myCertificate = new Finance.frmCertificate(); myCertificate.decID = 0; myCertificate.ShowDialog(); myCertificate.Dispose(); BindData(); }
/// <summary> /// 调用记帐凭证 /// </summary> /// <returns></returns> protected override bool GenBalance() { if (base.GenBalance() == false) { return(false); } Finance.frmCertificate myCertificate = new Finance.frmCertificate(); myCertificate.dtDes = ((DataView)binMaster.DataSource).Table; myCertificate.DataBind(); myCertificate.GenCertificate(6); myCertificate.ShowDialog(); myCertificate.Dispose(); return(true); }
protected override void Edit() { if (gvList.FocusedRowHandle < 0) { return; } //base.Edit(); DataRow dr = gvList.GetDataRow(gvList.FocusedRowHandle); Finance.frmCertificate myCertificate = new Finance.frmCertificate(); myCertificate.decID = Convert.ToDecimal(dr["F_ID"]); myCertificate.ShowDialog(); myCertificate.Dispose(); BindData(); }