Beispiel #1
0
        /// <summary>
        /// Adds the data.
        /// </summary>
        protected override void AddData()
        {
            //  base.AddData();
            var frmXtraSalary = new FrmXtraSalary();// FrmXtraSalary.Instance;

            frmXtraSalary.ShowDialog();
            LoadData();
        }
Beispiel #2
0
        /// <summary>
        /// Edits the data.
        /// </summary>
        protected override void EditData()
        {
            var frmXtraSalary = new FrmXtraSalary();
            var employeeId    = gridView.Columns["ExchangeRate"]; // RefDate
            var refDate       = gridView.Columns["RefDate"];

            //var refNo = gridView.Columns["RefNo"];
            if (employeeId != null)
            {
                frmXtraSalary.ExchangeRateForSend = gridView.GetRowCellValue(gridView.FocusedRowHandle, employeeId).ToString();
                frmXtraSalary.RefdateForSend      = gridView.GetRowCellValue(gridView.FocusedRowHandle, refDate).ToString();
            }

            frmXtraSalary.ShowDialog();
            LoadData();
        }