public dynamic GenerateDoUrl(ReqDoUrl data) { dynamic response = null; try { var res = SODAL.ValidateDODetails(data); //00 = Success,01 = Not found SalesOrders or CustomerCode if (res.Code == "00") { response = new RspDoUrl(); var reqParams = GenerateReqparams(data); string hashParams = Utility.HashData(Guid.NewGuid().ToString()); SODAL.InsLogReq(reqParams, hashParams); hashParams = HttpUtility.UrlEncode(hashParams); response.pageUrl = SysDAL.GetConfig("1002") + hashParams; } else { response = new ErrorAuthen(); response.status = new StatusError(); response.status.code = res.Code; response.status.message = res.Msg; } } catch (Exception ex) { throw ex; } return(response); }
public ResponseInfo <RspConfigValue> GetSystemConfig(ReqConfigValue data) { ResponseInfo <RspConfigValue> response = new ResponseInfo <RspConfigValue>(); try { response.ResponseData = new RspConfigValue(); response.ResponseData.SystemConfValue = SysDAL.GetConfig(data.ConfCode); if (string.IsNullOrEmpty(response.ResponseData.SystemConfValue)) { response.ResponseCode = "01"; response.ResponseMsg = "Don't have Configuration or Configuration isn't active"; } } catch (Exception ex) { throw ex; } return(response); }