Example #1
0
        private bool _Deletedt(string _ID)
        {
            bool _retval = false;

            if (_ID == string.Empty || _ID == null)
            {
                Program.MsgBox_Show("Nothing to Delete");
                return(_retval);
            }

            int countDt = 0;
            var omdt    = new MutationDt();

            omdt.ID         = _ID;
            omdt.UserDelete = _loginInfo.UserID;
            omdt.Delete();

            omdt.TxnNo = txtTxnNo.Text.Trim();
            countDt    = omdt.SelectAllByTxnNo().Rows.Count;

            omdt.Dispose();
            omdt = null;

            if (countDt == 0)
            {
                _DeleteHd();
            }
            _retval = true;
            Program.MsgBox_Show("Deleted is Successfully");
            return(_retval);
        }