Beispiel #1
0
        // Added by Bharat on 31 May 2017
        // Added new parameter for Window ID by Lokesh Chauhan on 20 Dec 2018
        public JsonResult GetCartData(string invCount_ID, int WindowID)
        {
            Ctx ctx = Session["ctx"] as Ctx;

            VIS.Models.InfoProductModel model = new VIS.Models.InfoProductModel();
            return(Json(JsonConvert.SerializeObject(model.GetCartData(invCount_ID, WindowID, ctx)), JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
        public JsonResult GetCart(string sql, int pageNo, bool isCart, int windowID, int WarehouseID, int WarehouseToID, int LocatorID, int LocatorToID)
        {
            Ctx ctx = Session["ctx"] as Ctx;

            VIS.Models.InfoProductModel model = new VIS.Models.InfoProductModel();
            sql = SecureEngineBridge.DecryptByClientKey(sql, ctx.GetSecureKey());
            return(Json(JsonConvert.SerializeObject(model.GetCart(sql, pageNo, isCart, windowID, WarehouseID, WarehouseToID, LocatorID, LocatorToID, ctx)), JsonRequestBehavior.AllowGet));
        }
Beispiel #3
0
        public JsonResult GetAttribute(string fields)
        {
            KeyNamePair retJSON = null;

            if (Session["ctx"] != null)
            {
                VAdvantage.Utility.Ctx      ctx = Session["ctx"] as Ctx;
                VIS.Models.InfoProductModel obj = new VIS.Models.InfoProductModel();
                retJSON = obj.GetAttribute(ctx, fields);
            }
            return(Json(JsonConvert.SerializeObject(retJSON), JsonRequestBehavior.AllowGet));
        }
Beispiel #4
0
 // Added by Bharat on 31 May 2017
 public JsonResult DeleteCart(int invCount_ID)
 {
     VIS.Models.InfoProductModel model = new VIS.Models.InfoProductModel();
     return(Json(JsonConvert.SerializeObject(model.DeleteCart(invCount_ID, Session["ctx"] as Ctx)), JsonRequestBehavior.AllowGet));
 }
Beispiel #5
0
 // Added by Bharat on 31 May 2017
 public JsonResult GetAttributeSet()
 {
     VIS.Models.InfoProductModel model = new VIS.Models.InfoProductModel();
     return(Json(JsonConvert.SerializeObject(model.GetAttributeSet(Session["ctx"] as Ctx)), JsonRequestBehavior.AllowGet));
 }
Beispiel #6
0
 // Added by Bharat on 31 May 2017
 public JsonResult GetPriceListVersion(int PriceList)
 {
     VIS.Models.InfoProductModel model = new VIS.Models.InfoProductModel();
     return(Json(JsonConvert.SerializeObject(model.GetPriceListVersion(PriceList, Session["ctx"] as Ctx)), JsonRequestBehavior.AllowGet));
 }
Beispiel #7
0
 // Added by Bharat on 31 May 2017
 public JsonResult GetWindowID(string fields)
 {
     VIS.Models.InfoProductModel model = new VIS.Models.InfoProductModel();
     return(Json(JsonConvert.SerializeObject(model.GetWindowID(fields, Session["ctx"] as Ctx)), JsonRequestBehavior.AllowGet));
 }
Beispiel #8
0
 public JsonResult GetVariants(int M_Product_ID, int M_Warehouse_ID, int ParentRec_ID, int M_AttributeSetInstance_ID, string AttributeCode)
 {
     VIS.Models.InfoProductModel model = new VIS.Models.InfoProductModel();
     //model.GetSchema(Ad_InfoWindow_ID);
     return(Json(JsonConvert.SerializeObject(model.GetVariants(M_Product_ID, M_Warehouse_ID, ParentRec_ID, M_AttributeSetInstance_ID, AttributeCode, Session["ctx"] as Ctx)), JsonRequestBehavior.AllowGet));
 }