Ejemplo n.º 1
0
        public override void OnAddNew()
        {
            base.OnAddNew();
            TRN020 dialog = new TRN020();

            if (dialog.ShowDialog(this) == DialogResult.OK)
            {
                LoadData(dtPeriodBegin.NZValue, dtPeriodEnd.NZValue);
            }
        }
Ejemplo n.º 2
0
        //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 (shtView.RowCount <= 0)
            {
                return;
            }
            NZString receiveNo = new NZString(null, shtView.GetValue(shtView.ActiveRowIndex, (int)eColView.SLIP_NO));
            TRN020   dialog    = new TRN020(receiveNo);

            if (dialog.ShowDialog(this) == DialogResult.OK)
            {
                LoadData(dtPeriodBegin.NZValue, dtPeriodEnd.NZValue);
            }
        }