Beispiel #1
0
        private void Mnu_Save_Click(object sender, System.EventArgs e)
        {
            CommonClass.FORMBASE frmActive = (CommonClass.FORMBASE) this.ActiveMdiChild;

            if (frmActive != null)
            {
                if (frmActive.i_ScCurrSeq > 0)
                {
                    Dictionary <object, object> Scx = (Dictionary <object, object>)frmActive.Proc_Sc[frmActive.i_ScCurrSeq - 1];
                    //FlexGrid_User oFlexGrid = (FlexGrid_User)Scx["Spread"];

                    //if (oFlexGrid.Rows.Count > 0)
                    //{
                    //    //oFlexGrid.Focused;
                    //    oFlexGrid.Focus();
                    //    // 重新获取当前焦点.
                    //}
                }
                frmActive.Form_Pro();
            }
            //else
            //{
            //    MessageBox.Show("Mnu_Clear_Click is running.");
            //}
        }
Beispiel #2
0
        private void Mnu_Delete_Click(object sender, System.EventArgs e)
        {
            FORMBASE frmActive = (FORMBASE)this.ActiveMdiChild;

            if (frmActive != null)
            {
                //frmActive.Form_Del();
            }
            //else
            //{
            //    MessageBox.Show("Mnu_Delete_Click is running.");
            //}
        }
Beispiel #3
0
        private void Mnu_Print_Click(object sender, System.EventArgs e)
        {
            FORMBASE frmActive = (FORMBASE)this.ActiveMdiChild;

            if (frmActive != null)
            {
                /* 这里需要重新设计. */
                //frmActive.Form_Pri();
            }
            //else
            //{
            //    MessageBox.Show("Mnu_RowCan_Click is running.");
            //}
        }
Beispiel #4
0
        private void Mnu_RowCan_Click(object sender, System.EventArgs e)
        {
            CommonClass.FORMBASE frmActive = (CommonClass.FORMBASE) this.ActiveMdiChild;

            if (frmActive != null)
            {
                /* 这里需要重新设计. */
                frmActive.Spread_Can();
            }
            //else
            //{
            //    MessageBox.Show("Mnu_RowCan_Click is running.");
            //}
        }
Beispiel #5
0
        private void Mnu_Refer_Click(object sender, System.EventArgs e)
        {
            CommonClass.FORMBASE frmActive = (CommonClass.FORMBASE) this.ActiveMdiChild;

            if (frmActive != null)
            {
                frmActive.Form_Ref();
                //frmActive.oFlexGrid_Clear();
            }
            //else
            //{
            //    MessageBox.Show("Mnu_Clear_Click is running.");
            //}
        }