Пример #1
0
        public override void OnAddNew()
        {
            base.OnAddNew();
            MAS140_MachineMaster form = new MAS140_MachineMaster();

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                LoadData(false);
            }
        }
Пример #2
0
        private void OpenMachineMaster()
        {
            if (!ActivePermission.Edit)
            {
                return;
            }
            if (shtView.RowCount <= 0)
            {
                return;
            }
            string MACHINE_CD         = shtView.GetValue(shtView.ActiveRowIndex, (int)eColView.MACHINE_CD).ToString();
            MAS140_MachineMaster form = new MAS140_MachineMaster(MACHINE_CD);

            if (form.ShowDialog(null) == DialogResult.OK)
            {
                LoadData(false);
            }
        }