Ejemplo n.º 1
0
    private void DeleteDataGroup(string groupcode)
    {
        GeneralDAL _dal = null;
        Hashtable  _ht  = null;

        try
        {
            _dal          = new GeneralDAL();
            _ht           = new Hashtable();
            _ht["p_code"] = groupcode;
            _dal.Delete(TABLE_NAME, _ht);
        }
        catch (Exception ex)
        {
            Shared.ShowErrorDialog(this, ex);
        }
    }
Ejemplo n.º 2
0
    private void DeleteDataMenu(string id)
    {
        GeneralDAL _dal = null;
        Hashtable  _ht  = null;

        try
        {
            _dal = new GeneralDAL();
            _ht  = new Hashtable();

            _ht["p_id"] = id;

            _dal.Delete(TABLE_MENU, _ht);
        }
        catch (Exception ex)
        {
            Shared.ShowErrorDialog(this, ex);
        }
    }
Ejemplo n.º 3
0
    private void DeleteDataColletion(string trx_no)
    {
        GeneralDAL _dal = null;
        Hashtable  _ht  = null;

        try
        {
            _dal = new GeneralDAL();
            _ht  = new Hashtable();

            _ht["p_trx_no"] = trx_no;

            _dal.Delete(TABLE_NAME, _ht);
        }
        catch (Exception ex)
        {
            Shared.ShowErrorDialog(this, ex);
        }
    }
Ejemplo n.º 4
0
    private void DeleteDataResults(string id)
    {
        GeneralDAL _dal = null;
        Hashtable  _ht  = null;

        try
        {
            _dal = new GeneralDAL();
            _ht  = new Hashtable();

            _ht["p_id"] = int.Parse(id);

            _dal.Delete(TABLE_NAME_RESULTS, _ht);
        }
        catch (Exception ex)
        {
            Shared.ShowErrorDialog(this, ex);
        }
    }
Ejemplo n.º 5
0
    private void DeleteApplicationCustomer(string no)
    {
        GeneralDAL _dal = null;
        Hashtable  _ht  = null;

        try
        {
            _dal = new GeneralDAL();
            _ht  = new Hashtable();

            _ht["p_application_no"] = no;

            _dal.Delete(TABLE_NAME, _ht);
        }
        catch (Exception ex)
        {
            Shared.ShowErrorDialog(this, ex);
        }
    }
Ejemplo n.º 6
0
    private void DeleteUsergroupsec(string uid, string groupcode)
    {
        GeneralDAL _dal = null;
        Hashtable  _ht  = null;

        try
        {
            _dal = new GeneralDAL();
            _ht  = new Hashtable();

            _ht["p_uid"]        = uid;
            _ht["p_group_code"] = groupcode;

            _dal.Delete(TABLE_NAME_GROUPSEC, _ht);
        }
        catch (Exception ex)
        {
            Shared.ShowErrorDialog(this, ex);
        }
    }
Ejemplo n.º 7
0
    private void DeleteEmployeeDevice(string empcode, string id)
    {
        GeneralDAL _dal = null;
        Hashtable  _ht  = null;

        try
        {
            _dal = new GeneralDAL();
            _ht  = new Hashtable();

            _ht["p_emp_code"] = empcode;
            _ht["p_id"]       = id;

            _dal.Delete(TABLE_NAME_C, _ht);
        }
        catch (Exception ex)
        {
            Shared.ShowErrorDialog(this, ex);
        }
    }
Ejemplo n.º 8
0
    private void DeleteDataEmployeeBranch(string empcode, string branchcode)
    {
        GeneralDAL _dal = null;
        Hashtable  _ht  = null;

        try
        {
            _dal = new GeneralDAL();
            _ht  = new Hashtable();

            _ht["p_emp_code"]    = empcode;
            _ht["p_branch_code"] = branchcode;

            _dal.Delete(TABLE_NAME_A, _ht);
        }
        catch (Exception ex)
        {
            Shared.ShowErrorDialog(this, ex);
        }
    }