// Returns the first page of root level assignments for the employee specified
 public static string GetAssignments(CDovicoID idEmployee, ref APIRequestResult aRequestResult)
 {
     // Build up the URI for a request of assignments for the specified employee and then call our overloaded function to do the rest of
     // the work.
     aRequestResult.SetRequestURI(("Assignments/Employee/" + idEmployee.ToString() + "/"), "");
     return GetAssignments("", ref aRequestResult);
 }
示例#2
0
        // Returns the first page of root level assignments for the employee specified
        public static string GetAssignments(CDovicoID idEmployee, ref APIRequestResult aRequestResult)
        {
            // Build up the URI for a request of assignments for the specified employee and then call our overloaded function to do the rest of
            // the work.
            aRequestResult.SetRequestURI(("Assignments/Employee/" + idEmployee.ToString() + "/"), "ForTimeEntry=T");

            return(GetAssignments("", ref aRequestResult));
        }
        //=====================================================================
        // STATIC METHODS: For use when interacting with the DOVICO Hosted API
        //---------------------------------------------------------------------
        // A request for a specific employee by ID (If there was an error the return value will be null)
        public static CEmployee GetInfo(CDovicoID idEmployee, APIRequestResult aRequestResult)
        {
            // Set the URI for the Employee/{ID}/ request. Process the request and if the returned list is not null (no errors) then return the
            // first item in the list (there should only ever be the one item)
            aRequestResult.SetRequestURI(("Employees/" + idEmployee.ToString() + "/"), "");
            List<CEmployee> lstEmployees = ProcessRequest(aRequestResult);
            if (lstEmployees != null) { return lstEmployees[0]; }

            // An error happened so just return null.
            return null;
        }
示例#4
0
        //=====================================================================
        // STATIC METHODS: For use when interacting with the DOVICO Hosted API
        //---------------------------------------------------------------------

        // A request for a specific employee by ID (If there was an error the return value will be null)
        public static CEmployee GetInfo(CDovicoID idEmployee, APIRequestResult aRequestResult)
        {
            // Set the URI for the Employee/{ID}/ request. Process the request and if the returned list is not null (no errors) then return the
            // first item in the list (there should only ever be the one item)
            aRequestResult.SetRequestURI(("Employees/" + idEmployee.ToString() + "/"), "");
            List <CEmployee> lstEmployees = ProcessRequest(aRequestResult);

            if (lstEmployees != null)
            {
                return(lstEmployees[0]);
            }

            // An error happened so just return null.
            return(null);
        }
示例#5
0
 // A CDovicoID
 public void Append(string sString, CDovicoID idValue)
 {
     Append(sString);
     Append(idValue.ToString());
 }
 // A CDovicoID
 public void Append(string sString, CDovicoID idValue)
 {
     Append(sString);
     Append(idValue.ToString());
 }