public void ChangeSubStatus(string code, string oldstatus)
    {
        bool status = true;

        if (oldstatus.Equals("ON"))
        {
            status = false;
        }
        int recordId = int.Parse(code);

        datafile.ChangeSubStatus(recordId, status);
    }