public TRT_AuthUser authenticateUser(string UserId, string UserPwd) { logger.Debug("Service: authenticateUser() called"); logger.InfoFormat("Input parameter Id : {0} ", UserId); logger.InfoFormat("Input parameter Password : {0} ", UserPwd); try { TRT_AuthUser result = new TRT_AuthUser(); TRTInterface authUsr_SI = new TRTInterface(); result = authUsr_SI.authenticateUser_SI(UserId, UserPwd); return result; } catch (Exception ex) { webServiceExHandling.ExceptionLog(ex); //string mailBody = string.Format(SCT_Constants.mail_BodyFormat, System.DateTime.Now.ToString("F"), PReqNo, ex.TargetSite.ToString(), ex.ToString()); //webServiceExHandling.Send_Email(SCT_Constants.Email_Dic, mailBody); TRT_AuthUser Error = new TRT_AuthUser(); Error.StatusFlag = 1; Error.Message = TRT_Constants.Error; logger.Error("ErrorCode = " + Error.StatusFlag.ToString()); logger.Error("ErrorMessage = " + Error.Message); logger.Error("Service: authenticateUser() returning error"); return Error; } }
public TRT_ChargeCodes getAllChargeCodes(string SearchCriteria) { logger.Debug("Service: getAllChargeCodes() called"); logger.InfoFormat("Input parameter Search String : {0} ", SearchCriteria); try { TRT_ChargeCodes result = new TRT_ChargeCodes(); TRTInterface getCC_SI = new TRTInterface(); result = getCC_SI.getAllChargeCodes_SI(SearchCriteria); return result; } catch (Exception ex) { webServiceExHandling.ExceptionLog(ex); //string mailBody = string.Format(SCT_Constants.mail_BodyFormat, System.DateTime.Now.ToString("F"), PReqNo, ex.TargetSite.ToString(), ex.ToString()); //webServiceExHandling.Send_Email(SCT_Constants.Email_Dic, mailBody); TRT_ChargeCodes Error = new TRT_ChargeCodes(); Error.TRT_header.statusFlag = 1; Error.TRT_header.statusMsg = TRT_Constants.Error; logger.Error("ErrorCode = " + Error.TRT_header.statusFlag.ToString()); logger.Error("ErrorMessage = " + Error.TRT_header.statusMsg); logger.Error("Service: getAllChargeCodes() returning error"); return Error; } }
public TRT_OutputEntity updateTaxiRequestDetails(TRT_InputEntity TRT_Entry) { logger.Debug("Service: updateTaxiRequestDetails() called"); logger.InfoFormat("Input parameter Employee ID : {0} ", TRT_Entry.empNo); try { TRT_OutputEntity result = new TRT_OutputEntity(); TRTInterface updateTRD_SI = new TRTInterface(); result = updateTRD_SI.updateTaxiRequestDetails_SI(TRT_Entry); return result; } catch (SqlException ex) { webServiceExHandling.ExceptionLog(ex); //string mailBody = string.Format(PST_Constants.mail_BodyFormat,System.DateTime.Now.ToString("F"),transId,ex.TargetSite.ToString(),ex.ToString()); //webServiceExHandling.Send_Email(PST_Constants.Email_Dic, mailBody); webServiceExHandling.Send_Email(TRT_Constants.Email_Dic, "Testing"); TRT_OutputEntity Error = new TRT_OutputEntity(); Error.statusFlag = ex.ErrorCode; string expCode = ExpType(ex); Error.statusMsg = TRT_Constants.cnfgErrMessages[expCode]; logger.Error("ErrorCode = " + Error.statusFlag.ToString()); logger.Error("ErrorMessage = " + Error.statusMsg); logger.Error("Service: updateTaxiRequestDetails() returning error"); return Error; } catch (Exception ex) { webServiceExHandling.ExceptionLog(ex); //string mailBody = string.Format(SCT_Constants.mail_BodyFormat, System.DateTime.Now.ToString("F"), PReqNo, ex.TargetSite.ToString(), ex.ToString()); //webServiceExHandling.Send_Email(PST_Constants.Email_Dic, mailBody); TRT_OutputEntity Error = new TRT_OutputEntity(); Error.statusFlag = 1; Error.statusMsg = TRT_Constants.Error; logger.Error("ErrorCode = " + Error.statusFlag.ToString()); logger.Error("ErrorMessage = " + Error.statusMsg); logger.Error("Service: updateTaxiRequestDetails() returning error"); return Error; } }