public ObjectResultEx GovtLogin(RequestGovtInfo Param) { try { var GovtAdmin = GovtWebService.GovtLogin(Param); string Code = string.Empty; if (!Param.IsApp) { Code = CacheFactory.Cache().GetCache <string>("ValidateCode").Trim(); if (GovtAdmin != null && Code.ToUpper().Equals(Param.ValidateCode.Trim().ToUpper())) { CookieInfo cookie = new CookieInfo(); VerificationExtension.WriteToken(cookie, GovtAdmin); return(ObjectResultEx.Instance(new { ResponseCookieInfo.RSAToKen, ResponseCookieInfo.RSAApiKey, ResponseCookieInfo.RSASysKey, GovtAdmin }, 1, RetrunMessge.SUCCESS, HttpCode.Success)); } else if (!Code.ToUpper().Equals(Param.ValidateCode.Trim().ToUpper())) { return(ObjectResultEx.Instance(null, -1, "验证码错误", HttpCode.NoAuth)); } else { return(ObjectResultEx.Instance(null, -1, "登录失败或账户冻结", HttpCode.NoAuth)); } } else { if (GovtAdmin != null) { CookieInfo cookie = new CookieInfo(); VerificationExtension.WriteToken(cookie, GovtAdmin); return(ObjectResultEx.Instance(new { ResponseCookieInfo.RSAToKen, ResponseCookieInfo.RSAApiKey, ResponseCookieInfo.RSASysKey, GovtAdmin }, 1, RetrunMessge.SUCCESS, HttpCode.Success)); } else if (GovtAdmin == null) { return(ObjectResultEx.Instance(null, -1, "请检查用户名和密码是否正确", HttpCode.NoAuth)); } else if (!Code.ToUpper().Equals(Param.ValidateCode.Trim().ToUpper())) { return(ObjectResultEx.Instance(null, -1, "验证码错误", HttpCode.NoAuth)); } else { return(ObjectResultEx.Instance(null, -1, "登录失败或账户冻结", HttpCode.NoAuth)); } } } catch (Exception) { return(ObjectResultEx.Instance(null, -1, "请输入验证码", HttpCode.FAIL)); } }
public ObjectResultEx GetProductPage(PageParamList <RequestEnterpriseGoods> pageParam) { if (string.IsNullOrEmpty(pageParam.QueryParam.ProductType))//默认食品 { pageParam.QueryParam.ProductType = "食品"; } if (pageParam.QueryParam.ProductType == "食品" || pageParam.QueryParam.ProductType == "农产品") { return(ObjectResultEx.Instance(GovtWebService.GetEdiblePage(pageParam), 1, RetrunMessge.SUCCESS, HttpCode.Success)); } else { return(ObjectResultEx.Instance(GovtWebService.GetWorkPage(pageParam), 1, RetrunMessge.SUCCESS, HttpCode.Success)); } }
public ObjectResultEx EditComplain(RequestGovtComplain Param) { if (string.IsNullOrEmpty(Param.Center)) { var SessionCode = CacheFactory.Cache().GetCache <string>("PhoneCode").Trim(); if (SessionCode.Equals(Param.Code)) { return(ObjectResultEx.Instance(GovtWebService.EditComplain(Param), 1, RetrunMessge.SUCCESS, HttpCode.Success)); } else { return(ObjectResultEx.Instance("验证码不正确!", 1, RetrunMessge.SUCCESS, HttpCode.Success)); } } else { return(ObjectResultEx.Instance(GovtWebService.EditComplain(Param), 1, RetrunMessge.SUCCESS, HttpCode.Success)); } }
public ObjectResultEx Login(RequestGovtInfo Param) { try { var GovtAdmin = GovtWebService.GovtLogin(Param); string Code = string.Empty; if (GovtAdmin != null) { CookieInfo cookie = new CookieInfo(); VerificationExtension.WriteToken(cookie, GovtAdmin); return(ObjectResultEx.Instance(new { ResponseCookieInfo.RSAToKen, ResponseCookieInfo.RSAApiKey, ResponseCookieInfo.RSASysKey, GovtAdmin }, 1, RetrunMessge.SUCCESS, HttpCode.Success)); } else { return(ObjectResultEx.Instance(null, -1, "登录失败或账户冻结", HttpCode.NoAuth)); } } catch (Exception) { return(ObjectResultEx.Instance(null, -1, "请检查账号和密码是否正确", HttpCode.FAIL)); } }
public ObjectResultEx ReportCardWaring(SimpleParam <Guid> Param, SimpleParam <String> Key) { return(ObjectResultEx.Instance(GovtWebService.ReportCardWaring(Param.Id, Key.Parameter), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx GetAllCom(RequestEnterprise Param) { return(ObjectResultEx.Instance(GovtWebService.GetAllCom(Param.AreaTree, (int)Param.CompanyType), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx GetAllPro(SimpleParam <string> keys) { return(ObjectResultEx.Instance(GovtWebService.GetAllPro(keys.Id), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx RemoveNotice(SimpleParam <Guid> Param) { return(ObjectResultEx.Instance(GovtWebService.RemoveNotice(Param.Id), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx GetTrainNoticePage(PageParamList <RequestGovtTrainNotice> pageParam) { return(ObjectResultEx.Instance(GovtWebService.GetTrainNoticePage(pageParam), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx GetTemplateContentList(SimpleParam <String> Key, SimpleParam <String> Param) { return(ObjectResultEx.Instance(GovtWebService.GetTemplateContentList(Key.Id, Param.Parameter), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx EditCategoryAttach(RequestGovtPatrolCategoryAttach Param) { return(ObjectResultEx.Instance(GovtWebService.EditCategoryAttach(Param), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public Object GetAllMerchant(SimpleParam <String> Key) { return(ObjectResultEx.Instance(GovtWebService.GetAllMerchant(Key.Id), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx GetEdiblePage(PageParamList <RequestEnterpriseGoods> pageParam) { return(ObjectResultEx.Instance(GovtWebService.GetEdiblePage(pageParam), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx GetDistributArea() { return(ObjectResultEx.Instance(GovtWebService.GetDistributArea(), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx EditUser(RequestGovtInfo Param) { return(ObjectResultEx.Instance(GovtWebService.EditUser(Param), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx GetAllVideo(SimpleParam <Guid> Param, SimpleParam <int> Type) { return(ObjectResultEx.Instance(GovtWebService.GetAllVideo(Param.Id, Type.Parameter), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx GetAllMer(RequestMerchant Param) { return(ObjectResultEx.Instance(GovtWebService.GetAllMer(Param.AreaTree, (int)Param.DiningType), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx GetNetPatrolLogs(SimpleParam <Guid> Param) { return(ObjectResultEx.Instance(GovtWebService.GetNetPatrolLogs(Param.Id), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx GetCategoryAttachPage(PageParamList <RequestGovtPatrolCategoryAttach> pageParam) { return(ObjectResultEx.Instance(GovtWebService.GetCategoryAttachPage(pageParam), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx GetTickPrint(SimpleParam <Dictionary <String, String> > Key) { return(ObjectResultEx.Instance(GovtWebService.GetTickPrint(Key.Id), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx EditMovePatrol(RequestGovtMovePatrol Param) { return(ObjectResultEx.Instance(GovtWebService.EditMovePatrol(Param), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx GetBanquetPage(PageParamList <RequestCookBanquet> pageParam) { return(ObjectResultEx.Instance(GovtWebService.GetBanquetPage(pageParam), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx GetTemplateDetail(SimpleParam <Guid> Param) { return(ObjectResultEx.Instance(GovtWebService.GetTemplateDetail(Param.Id), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx EditCookBanquet(SimpleParam <Guid> Key, SimpleParam <String> Param) { return(ObjectResultEx.Instance(GovtWebService.EditCookBanquet(Key.Id, Param.Parameter), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx EditNotice(RequestGovtTrainNotice Param) { return(ObjectResultEx.Instance(GovtWebService.EditNotice(Param), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx EditWaringRisk(RequestGovtRisk Param) { return(ObjectResultEx.Instance(GovtWebService.EditWaringRisk(Param), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx GetAreaBill(SimpleParam <string> type, SimpleParam <string> name) { return(ObjectResultEx.Instance(GovtWebService.GetAreaBill(type.Id, name.Parameter), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx GetWarnList(PageParamList <RequestGovtRiskCompany> pageParam) { return(ObjectResultEx.Instance(GovtWebService.GetWarnList(pageParam), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx GetAppTodayCount() { return(ObjectResultEx.Instance(GovtWebService.GetAppTodayCount(), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }
public ObjectResultEx GetAllMerWithKeyWord(SimpleParam <string> KeyWord) { return(ObjectResultEx.Instance(GovtWebService.GetAllMerWithKeyWord(KeyWord.Id), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }