Exemplo n.º 1
0
 protected override void New()
 {
     //base.New();
     Finance.frmCertificate myCertificate = new Finance.frmCertificate();
     myCertificate.decID = 0;
     myCertificate.ShowDialog();
     myCertificate.Dispose();
     BindData();
 }
Exemplo n.º 2
0
 /// <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);
 }
Exemplo n.º 3
0
        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();
        }