public ActionResult _DetailODSIB(int OrderID) { var dataODS = FacadeOrder.Get(OrderID); var dataIB = FacadeInstalledBase.GetByID(dataODS.FK_InstalledBaseID); var dataProduct = FacadeProduct.GetByID(dataIB.FK_ProductID.Value); var dataShopPlace = FacadeShopPlace.Get(dataIB.FK_ShopPlaceID.Value); ViewBag.dataODS = dataODS; ViewBag.dataIB = dataIB; ViewBag.dataProduct = dataProduct; ViewBag.dataShopPlace = dataShopPlace; return(PartialView()); }
public JsonResult GetShopPlace(string value) { try { ModelViewUserG objCred = new JavaScriptSerializer().Deserialize <ModelViewUserG>(value); if (!objCred.Date.HasValue) { FacadeLog.MobileWriteEntry("Order/GetShopPlace|FirstSync|" + value); var detail = new List <ModelViewDetail>(); detail.Add(new ModelViewDetail() { Battery = "--", ConnectionType = "--", Date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), InnerException = "--", Message = "Primera sincronización", Module = "app.activities.SynchronizationActivity", OrderID = "--", SignPercentage = "--", SignType = "--", StackTrace = "--", TokenLog = "", Type = "Information", version = "--" }); ModelViewLog dataODS = new ModelViewLog() { TokenApp = objCred.TokenApp, TokenUser = objCred.TokenUser, Detail = detail }; var token = FacadeLogMobile.Insert(dataODS); } var lt = FacadeShopPlace.GetListShopPlace(objCred); return(Json(lt, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { throw ex; } }