public override void OnAddNew() { base.OnAddNew(); TRN210_WorkResultEntry dialog = new TRN210_WorkResultEntry(); if (dialog.ShowDialog(this) == DialogResult.OK) { LoadData(dtPeriodBegin.NZValue, dtPeriodEnd.NZValue); } }
//private void OnNew() //{ // TRN020 dialog = new TRN020(); // if (dialog.ShowDialog(this) == DialogResult.OK) // { // LoadData(dtPeriodBegin.NZValue, dtPeriodEnd.NZValue); // } //} private void OnEdit() { if (!ActivePermission.Edit) { return; } if (shtProductionReportList.RowCount <= 0) { return; } NZString TransID = new NZString(null, shtProductionReportList.GetValue(shtProductionReportList.ActiveRowIndex, (int)eColView.TRANS_ID)); TRN210_WorkResultEntry dialog = new TRN210_WorkResultEntry(TransID); if (dialog.ShowDialog(this) == DialogResult.OK) { LoadData(dtPeriodBegin.NZValue, dtPeriodEnd.NZValue); } }