コード例 #1
0
ファイル: UserServiceWrapper.cs プロジェクト: mehabadi/HPMS
        public void UpdateEmail(Action <string, Exception> action, EmailDTO emailDTO)
        {
            var url = string.Format(baseAddressUserSecurity) + "?isEmail=" + true;

            WebClientHelper.Put(new Uri(url, UriKind.Absolute), action, emailDTO, WebClientHelper.MessageFormat.Json
                                , PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #2
0
ファイル: UserServiceWrapper.cs プロジェクト: mehabadi/HPMS
        public void ChangePassword(Action <string, Exception> action, ChangePasswordDTO changePassword)
        {
            var url = string.Format(baseAddressUserSecurity);

            WebClientHelper.Put(new Uri(url, UriKind.Absolute), action, changePassword, WebClientHelper.MessageFormat.Json
                                , PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #3
0
        public void ChangePeriodActiveStatus(Action <Exception> action, PeriodDTO periodDto)
        {
            var url = string.Format(baseAddress);

            WebClientHelper.Put <PeriodDTO, PeriodDTO>(new Uri(url, UriKind.Absolute), (res, exp) => action(exp), periodDto
                                                       , PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #4
0
        public void ChangeDeterministicCalculation(Action <Exception> action, CalculationDTO calacDto)
        {
            var url = string.Format(baseAddress + makeApiAdress(calacDto.PeriodId));

            WebClientHelper.Put <CalculationDTO, CalculationDTO>(new Uri(url, UriKind.Absolute), (res, exp) => action(exp), calacDto
                                                                 , PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #5
0
        public void CopyBasicDataFrom(Action <Exception> action, long sourcePeriodId, long destinationPeriodId, PeriodStateDTO state)
        {
            var url = string.Format(baseAddressCopyBasicData) + "/" + sourcePeriodId + "/DestinationPeriods/" + destinationPeriodId + "/State";

            WebClientHelper.Put <PeriodStateDTO, PeriodStateDTO>(new Uri(url, UriKind.Absolute),
                                                                 (res, exp) => action(exp), state, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #6
0
        public void RollBackPeriodState(Action <Exception> action, long periodId)
        {
            var url = string.Format(baseAddress) + "/" + periodId + "/State/?dummy='rollback'";

            WebClientHelper.Put <string, string>(new Uri(url, UriKind.Absolute),
                                                 (res, exp) => action(exp), "rollback", PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #7
0
        public void UpdateInquirySubjectInquirers(Action <InquirySubjectWithInquirersDTO, Exception> action, long periodId, long jobPositionId,
                                                  InquirySubjectWithInquirersDTO inquirySubjectWithInquirersDTO)
        {
            var url = string.Format(baseAddress + makeInquirySubjectInquirersApiAdress(periodId, jobPositionId, inquirySubjectWithInquirersDTO.EmployeeNo) + "?Batch=1");

            WebClientHelper.Put(new Uri(url, PMSClientConfig.UriKind), action, inquirySubjectWithInquirersDTO, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #8
0
        public void ChangePeriodState(Action <Exception> action, long id, PeriodStateDTO period)
        {
            var url = string.Format(baseAddress) + "/" + id + "/State";

            WebClientHelper.Put <PeriodStateDTO, PeriodStateDTO>(new Uri(url, UriKind.Absolute),
                                                                 (res, exp) => action(exp), period, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #9
0
        public void AssignJobPositionsToEmployee(Action <EmployeeJobPositionsDTO, Exception> action, long periodId, string employeeNo,
                                                 EmployeeJobPositionsDTO employeeJobPositions)
        {
            var url = string.Format(baseAddress + makeEmployeeJobPositionsApiAdress(periodId, employeeNo));

            WebClientHelper.Put(new Uri(url, PMSClientConfig.UriKind), action, employeeJobPositions, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #10
0
ファイル: UserServiceWrapper.cs プロジェクト: mehabadi/HPMS
        public void UpdateUserAccess(Action <UserGroupDTO, Exception> action, string username, Dictionary <int, bool> actionList)
        {
            var url = string.Format(baseAddressActionTypes + "?username=" + username);

            WebClientHelper.Put(new Uri(url, UriKind.Absolute), action, actionList, WebClientHelper.MessageFormat.Json
                                , PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #11
0
        public void ChangeCalculationState(Action <Exception> action, long periodId, long id, CalculationStateDTO calculationState)
        {
            var url = string.Format(baseAddress + makeApiAdress(periodId) + "/" + id + "/State");

            WebClientHelper.Put <CalculationStateDTO, CalculationStateDTO>(new Uri(url, UriKind.Absolute),
                                                                           (res, exp) => action(exp), calculationState,
                                                                           WebClientHelper.MessageFormat.Json, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #12
0
        public void UpdateJobIndexInquiryForm(Action <InquiryFormByIndexDTO, Exception> action, InquiryFormByIndexDTO inquiryForm)
        {
            var url =
                string.Format(baseAddress +
                              makeJobIndexPointByIndexApiAdress(inquiryForm.PeriodId, inquiryForm.InquirerEmployeeNo, inquiryForm.JobIndexId) + "?Batch=1");

            WebClientHelper.Put(new Uri(url, PMSClientConfig.UriKind), action, inquiryForm, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #13
0
        public void UpdateLog(Action <LogDTO, Exception> action, LogDTO log)
        {
            var url = string.Format(baseAddress);

            WebClientHelper.Put(new Uri(url, UriKind.Absolute),
                                action, log,
                                WebClientHelper.MessageFormat.Json, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #14
0
        public void UpdateInquirySubjectForm(Action <InquiryUnitFormDTO, Exception> action, InquiryUnitFormDTO inquiryForm)
        {
            var url =
                string.Format(baseAddress + makeInquiryUnitIndexPointApiAdress(
                                  inquiryForm.PeriodId,
                                  inquiryForm.InquirerEmployeeNo,
                                  inquiryForm.InquiryUnitId));

            WebClientHelper.Put(new Uri(url, PMSClientConfig.UriKind), action, inquiryForm, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #15
0
        public void UpdateUnitIndexInPeriod(Action <UnitIndexInPeriodDTO, Exception> action, UnitIndexInPeriodDTO unitIndexInPeriod)
        {
            //action(unitIndexInPeriod, null);
            //var url = string.Format(baseAddress + "?Id=" + unitIndexInPeriod.Id);
            //WebClientHelper.Put<UnitIndexInPeriod, UnitIndexInPeriod>(new Uri(url, UriKind.Absolute),
            //    (res, exp) => action(res, exp), unitIndexInPeriod,
            //    WebClientHelper.MessageFormat.Json);
            var url = string.Format(baseAddress + makeApiAdress(unitIndexInPeriod.PeriodId));

            WebClientHelper.Put(new Uri(url, PMSClientConfig.UriKind), action, unitIndexInPeriod, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #16
0
        public void ChangeClaimState(Action <ClaimDTO, Exception> action, long periodId, long claimId, string changeStateMessage, ClaimStateDTO claimState)
        {
            var url = string.Format(baseAddress + makeApiAdress(periodId) + "?Id=" + claimId + "&Message=" + changeStateMessage);

            WebClientHelper.Put(new Uri(url, UriKind.Absolute), action, claimState, WebClientHelper.MessageFormat.Json, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #17
0
ファイル: UserServiceWrapper.cs プロジェクト: mehabadi/HPMS
        public void UpdateUser(Action <UserDTO, Exception> action, UserDTO userDto)
        {
            var url = string.Format(baseAddressUsers + "?partyname=" + userDto.PartyName);

            WebClientHelper.Put(new Uri(url, UriKind.Absolute), action, userDto, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #18
0
        public void UpdateJobIndexCategory(Action <JobIndexCategoryDTO, Exception> action, JobIndexCategoryDTO jobIndexCategory)
        {
            var url = string.Format(apiAddress + "?Id=" + jobIndexCategory.Id);

            WebClientHelper.Put(new Uri(url, PMSClientConfig.UriKind), action, jobIndexCategory, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #19
0
        public void UpdateJobPositionInPeriod(Action <JobPositionInPeriodAssignmentDTO, Exception> action, JobPositionInPeriodAssignmentDTO jobPositionInPeriod)
        {
            var url = string.Format(baseAddress + makeApiAdress(jobPositionInPeriod.PeriodId));

            WebClientHelper.Put(new Uri(url, PMSClientConfig.UriKind), action, jobPositionInPeriod, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #20
0
        public void UpdateCustomField(Action <CustomFieldDTO, Exception> action, CustomFieldDTO customField)
        {
            var url = string.Format(apiCustomFieldAddress, UriKind.Absolute);

            WebClientHelper.Put(new Uri(url), action, customField, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #21
0
        public void UpdateFunction(Action <FunctionDTO, Exception> action, FunctionDTO function)
        {
            var url = string.Format(apiAddress + "?Id=" + function.Id);

            WebClientHelper.Put(new Uri(url, PMSClientConfig.UriKind), action, function, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #22
0
        public void UpdateJobPosition(Action <JobPositionDTO, Exception> action, JobPositionDTO jobPosition)
        {
            var url = string.Format(baseAddress);

            WebClientHelper.Put(new Uri(url, PMSClientConfig.UriKind), action, jobPosition, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #23
0
        public void ChangeEmployeePoint(Action <Exception> action, EmployeeDTO employee)
        {
            var url = string.Format(baseAddress + makeApiAdress(employee.PeriodId) + "?employeeNo=" + employee.PersonnelNo + "&point=" + employee.FinalPoint);

            WebClientHelper.Put <string, string>(new Uri(url, PMSClientConfig.UriKind), (res, exp) => action(exp), "ChangeEmployeePoint", PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #24
0
        public void ConfirmEmployeeAboveMaxPoint(Action <Exception> action, string personnelNo, long periodId)
        {
            var url = string.Format(baseAddress + makeApiAdress(periodId) + "?employeeNo=" + personnelNo);

            WebClientHelper.Put <string, string>(new Uri(url, PMSClientConfig.UriKind), (res, exp) => action(exp), "ConfirmEmployeeAboveMaxPoint", PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #25
0
        public void UpdateUnitIndexGroupInPeriod(Action <UnitIndexGroupInPeriodDTO, Exception> action, UnitIndexGroupInPeriodDTO unitIndexGroupInPeriod)
        {
            var url = string.Format(baseAddress + makeApiAdress(unitIndexGroupInPeriod.PeriodId));

            WebClientHelper.Put(new Uri(url, PMSClientConfig.UriKind), action, unitIndexGroupInPeriod, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #26
0
        public void UpdateUnitIndex(Action <UnitIndexDTO, Exception> action, UnitIndexDTO unitIndex)
        {
            var url = string.Format(apiAddress + "?Id=" + unitIndex.Id);

            WebClientHelper.Put(new Uri(url, UriKind.Absolute), action, unitIndex, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #27
0
ファイル: PolicyServiceWrapper.cs プロジェクト: mehabadi/HPMS
        public void UpdatePolicy(Action <PolicyDTO, Exception> action, PolicyDTO policy)
        {
            var url = string.Format(apiAddress);

            WebClientHelper.Put(new Uri(url, PMSClientConfig.UriKind), action, policy, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #28
0
        public void UpdatePeriod(Action <PeriodDTO, Exception> action, PeriodDTO period)
        {
            var url = string.Format(baseAddress);

            WebClientHelper.Put(new Uri(url, UriKind.Absolute), action, period, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #29
0
        public void UpdateEmployee(Action <EmployeeDTO, Exception> action, EmployeeDTO employee)
        {
            var url = string.Format(baseAddress + makeApiAdress(employee.PeriodId));

            WebClientHelper.Put(new Uri(url, PMSClientConfig.UriKind), action, employee, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }
コード例 #30
0
ファイル: UserServiceWrapper.cs プロジェクト: mehabadi/HPMS
        public void ChangeCurrentWorkListUserName(Action <string, Exception> action, string logonUserName, string currentPermittedUser)
        {
            var url = string.Format(baseAddressUsers + "/" + logonUserName + "/CurrentPermittedUser");

            WebClientHelper.Put(new Uri(url, UriKind.Absolute), action, currentPermittedUser, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token));
        }