protected override void btnEdit_Click(object sender, EventArgs e) { #region 编辑 FmIUInv f = new FmIUInv(); f.OuterFilterSQL = new string[] { this.m_strPK + " = " + this.m_dvM[dgM.CurrentRowIndex][this.m_strPK] }; f.OpState = BusiOpState.EditBusiData; UICtrl.SetShowStyle(f, 1); if (f.ShowDialog() == DialogResult.Yes) { this.m_bOpState = f.OpState; GetMBusiData(); } #endregion }
protected override void btnAdd_Click(object sender, EventArgs e) { #region 新增 FmIUInv f = new FmIUInv(); f.OuterFilterSQL = new string[] { this.m_strPK + "=-1" }; f.OpState = BusiOpState.AddBusiData; f.setInvClass(NodeTag); UICtrl.SetShowStyle(f, 1); if (f.ShowDialog() == DialogResult.Yes) { this.m_bOpState = f.OpState; GetMBusiData(); } #endregion }