Esempio n. 1
0
        public void DeleteCalculation(Action <string, Exception> action, long periodId, long id)
        {
            var url = string.Format(baseAddress + makeApiAdress(periodId) + "/" + id);

            WebClientHelper.Delete(new Uri(url, UriKind.Absolute),
                                   action, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
        public void DeleteUnitIndexInPeriod(Action <string, Exception> action, long periodId, long unitIndexId)
        {
            var url = string.Format(baseAddress + makeApiAdress(periodId) + "?abstractId=" + unitIndexId);

            WebClientHelper.Delete(new Uri(url, PMSClientConfig.UriKind), action, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
Esempio n. 3
0
        public void DeletePolicy(Action <string, Exception> action, long id)
        {
            var url = string.Format(apiAddress + "?Id=" + id);

            WebClientHelper.Delete(new Uri(url, PMSClientConfig.UriKind), action, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
Esempio n. 4
0
        public void DeleteFunction(Action <string, Exception> action, long policyId, long functionId)
        {
            var url = string.Format(policyFunctionsApiAddress + "?policyId=" + policyId + "&Id=" + functionId);

            WebClientHelper.Delete(new Uri(url, PMSClientConfig.UriKind), action, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
Esempio n. 5
0
        public void DeleteLog(Action <string, Exception> action, Guid id)
        {
            var url = string.Format(baseAddress + "?Id=" + id);

            WebClientHelper.Delete(new Uri(url, UriKind.Absolute), action, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
Esempio n. 6
0
        public void DeleteCustomField(Action <string, Exception> action, long id)
        {
            var url = string.Format(apiCustomFieldAddress + "?Id=" + id, UriKind.Absolute);

            WebClientHelper.Delete(new Uri(url), action, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
Esempio n. 7
0
        public void DeleteEmployee(Action <string, Exception> action, long periodId, string personnelNo)
        {
            var url = string.Format(baseAddress + makeApiAdress(periodId) + "?PersonnelNo=" + personnelNo);

            WebClientHelper.Delete(new Uri(url, PMSClientConfig.UriKind), action, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
Esempio n. 8
0
        public void DeleteUser(Action <string, Exception> action, string username)
        {
            var url = string.Format(baseAddressUsers + "?partyName=" + username);

            WebClientHelper.Delete(new Uri(url, UriKind.Absolute), action, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
Esempio n. 9
0
        public void LogoutUser(Action <string, Exception> action)
        {
            var url = string.Format(baseAddressUsers);

            WebClientHelper.Delete(new Uri(url, PMSClientConfig.UriKind), action, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
Esempio n. 10
0
        public void DeleteVerifier(Action <string, Exception> action, long periodId, long unitId, string personalNo)
        {
            var url = string.Format(baseAddress + createUnitVerifierApiAdress(periodId, unitId) + "?employeeNo=" + personalNo);

            WebClientHelper.Delete(new Uri(url, PMSClientConfig.UriKind), action, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }