Example #1
0
 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));
     }
 }
Example #2
0
 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));
     }
 }
Example #3
0
 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));
     }
 }
Example #4
0
 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));
     }
 }
Example #5
0
 public ObjectResultEx ReportCardWaring(SimpleParam <Guid> Param, SimpleParam <String> Key)
 {
     return(ObjectResultEx.Instance(GovtWebService.ReportCardWaring(Param.Id, Key.Parameter), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #6
0
 public ObjectResultEx GetAllCom(RequestEnterprise Param)
 {
     return(ObjectResultEx.Instance(GovtWebService.GetAllCom(Param.AreaTree, (int)Param.CompanyType), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #7
0
 public ObjectResultEx GetAllPro(SimpleParam <string> keys)
 {
     return(ObjectResultEx.Instance(GovtWebService.GetAllPro(keys.Id), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #8
0
 public ObjectResultEx RemoveNotice(SimpleParam <Guid> Param)
 {
     return(ObjectResultEx.Instance(GovtWebService.RemoveNotice(Param.Id), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #9
0
 public ObjectResultEx GetTrainNoticePage(PageParamList <RequestGovtTrainNotice> pageParam)
 {
     return(ObjectResultEx.Instance(GovtWebService.GetTrainNoticePage(pageParam), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #10
0
 public ObjectResultEx GetTemplateContentList(SimpleParam <String> Key, SimpleParam <String> Param)
 {
     return(ObjectResultEx.Instance(GovtWebService.GetTemplateContentList(Key.Id, Param.Parameter), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #11
0
 public ObjectResultEx EditCategoryAttach(RequestGovtPatrolCategoryAttach Param)
 {
     return(ObjectResultEx.Instance(GovtWebService.EditCategoryAttach(Param), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #12
0
 public Object GetAllMerchant(SimpleParam <String> Key)
 {
     return(ObjectResultEx.Instance(GovtWebService.GetAllMerchant(Key.Id), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #13
0
 public ObjectResultEx GetEdiblePage(PageParamList <RequestEnterpriseGoods> pageParam)
 {
     return(ObjectResultEx.Instance(GovtWebService.GetEdiblePage(pageParam), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #14
0
 public ObjectResultEx GetDistributArea()
 {
     return(ObjectResultEx.Instance(GovtWebService.GetDistributArea(), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #15
0
 public ObjectResultEx EditUser(RequestGovtInfo Param)
 {
     return(ObjectResultEx.Instance(GovtWebService.EditUser(Param), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #16
0
 public ObjectResultEx GetAllVideo(SimpleParam <Guid> Param, SimpleParam <int> Type)
 {
     return(ObjectResultEx.Instance(GovtWebService.GetAllVideo(Param.Id, Type.Parameter), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #17
0
 public ObjectResultEx GetAllMer(RequestMerchant Param)
 {
     return(ObjectResultEx.Instance(GovtWebService.GetAllMer(Param.AreaTree, (int)Param.DiningType), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #18
0
 public ObjectResultEx GetNetPatrolLogs(SimpleParam <Guid> Param)
 {
     return(ObjectResultEx.Instance(GovtWebService.GetNetPatrolLogs(Param.Id), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #19
0
 public ObjectResultEx GetCategoryAttachPage(PageParamList <RequestGovtPatrolCategoryAttach> pageParam)
 {
     return(ObjectResultEx.Instance(GovtWebService.GetCategoryAttachPage(pageParam), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #20
0
 public ObjectResultEx GetTickPrint(SimpleParam <Dictionary <String, String> > Key)
 {
     return(ObjectResultEx.Instance(GovtWebService.GetTickPrint(Key.Id), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #21
0
 public ObjectResultEx EditMovePatrol(RequestGovtMovePatrol Param)
 {
     return(ObjectResultEx.Instance(GovtWebService.EditMovePatrol(Param), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #22
0
 public ObjectResultEx GetBanquetPage(PageParamList <RequestCookBanquet> pageParam)
 {
     return(ObjectResultEx.Instance(GovtWebService.GetBanquetPage(pageParam), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #23
0
 public ObjectResultEx GetTemplateDetail(SimpleParam <Guid> Param)
 {
     return(ObjectResultEx.Instance(GovtWebService.GetTemplateDetail(Param.Id), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #24
0
 public ObjectResultEx EditCookBanquet(SimpleParam <Guid> Key, SimpleParam <String> Param)
 {
     return(ObjectResultEx.Instance(GovtWebService.EditCookBanquet(Key.Id, Param.Parameter), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #25
0
 public ObjectResultEx EditNotice(RequestGovtTrainNotice Param)
 {
     return(ObjectResultEx.Instance(GovtWebService.EditNotice(Param), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #26
0
 public ObjectResultEx EditWaringRisk(RequestGovtRisk Param)
 {
     return(ObjectResultEx.Instance(GovtWebService.EditWaringRisk(Param), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #27
0
 public ObjectResultEx GetAreaBill(SimpleParam <string> type, SimpleParam <string> name)
 {
     return(ObjectResultEx.Instance(GovtWebService.GetAreaBill(type.Id, name.Parameter), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #28
0
 public ObjectResultEx GetWarnList(PageParamList <RequestGovtRiskCompany> pageParam)
 {
     return(ObjectResultEx.Instance(GovtWebService.GetWarnList(pageParam), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #29
0
 public ObjectResultEx GetAppTodayCount()
 {
     return(ObjectResultEx.Instance(GovtWebService.GetAppTodayCount(), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Example #30
0
 public ObjectResultEx GetAllMerWithKeyWord(SimpleParam <string> KeyWord)
 {
     return(ObjectResultEx.Instance(GovtWebService.GetAllMerWithKeyWord(KeyWord.Id), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }