Beispiel #1
0
        protected override void btnEdit_Click(object sender, EventArgs e)
        {
            FmIUUser f = new FmIUUser();

            f.OuterFilterSQL = new string[] { "1=1 and " + this.m_strPK + "=" + this.m_dvM[this.dgM.CurrentRowIndex][this.m_strPK] };
            f.OpState        = BusiOpState.EditBusiData;
            UICtrl.SetShowStyle(f, 1);
            if (f.ShowDialog() == DialogResult.Yes)
            {
                this.m_bOpState = f.OpState; GetBusiData();
            }
        }
Beispiel #2
0
        protected override void btnAdd_Click(object sender, EventArgs e)
        {
            FmIUUser f = new FmIUUser();

            f.OuterFilterSQL = new string[] { "1=1 and " + this.m_strPK + "=-1" };
            f.OpState        = BusiOpState.AddBusiData;
            UICtrl.SetShowStyle(f, 1);
            if (f.ShowDialog() == DialogResult.Yes)
            {
                this.m_bOpState = f.OpState; GetBusiData();
            }
        }