Пример #1
0
        public ActionResult GetColorAndGradeList(string ProductionFloor, string BuyerID, string BuyerOrderID, string ArticleID, string ItemTypeID, string LeatherStatusID, string ColorID, string ArticleChallanID)
        {
            PrdCrustLeatherQC model = new PrdCrustLeatherQC();

            //if (string.IsNullOrEmpty(ScheduleItemID)) return Json(model, JsonRequestBehavior.AllowGet);
            model.PrdCrustLeatherQCItemList = Dalobject.GetScheduleColorList(ProductionFloor, BuyerID, BuyerOrderID, ArticleID, ItemTypeID, LeatherStatusID, ColorID, ArticleChallanID);
            if (model.PrdCrustLeatherQCItemList.Count > 0)
            {
                model.PrdCrustLeatherQCSelectionList = Dalobject.GetScheduleGradeList(ProductionFloor, BuyerID, BuyerOrderID, ArticleID, ItemTypeID, LeatherStatusID, ColorID, ArticleChallanID);
            }
            return(Json(model, JsonRequestBehavior.AllowGet));
        }
Пример #2
0
        public ActionResult GetAllGridList(string CrustLeatherQCID, string StoreId)
        {
            PrdCrustLeatherQC model = new PrdCrustLeatherQC();

            if (string.IsNullOrEmpty(CrustLeatherQCID))
            {
                return(Json(model, JsonRequestBehavior.AllowGet));
            }
            model.PrdCrustLeatherQCItemList = Dalobject.GetQCColorList(CrustLeatherQCID);
            if (model.PrdCrustLeatherQCItemList.Count > 0)
            {
                model.PrdCrustLeatherQCSelectionList = Dalobject.GetQCSelectionList(model.PrdCrustLeatherQCItemList[0].CLQCItemID.ToString(), StoreId);
            }
            return(Json(model, JsonRequestBehavior.AllowGet));
        }
Пример #3
0
 public ActionResult CheckedCrustProductionSchedule(PrdCrustLeatherQC model)
 {
     _vmMsg = Dalobject.CheckedCrustProductionSchedule(model, Convert.ToInt32(Session["UserID"]));
     return(Json(new { msg = _vmMsg }));
 }
Пример #4
0
 public ActionResult FinishLeatherQC(PrdCrustLeatherQC model)
 {
     _vmMsg = model.CrustLeatherQCID == 0 ? Dalobject.Save(model, Convert.ToInt32(Session["UserID"]), "FinishLeatherQC/FinishLeatherQC") : Dalobject.Update(model, Convert.ToInt32(Session["UserID"]));
     //_vmMsg = model.CrustLeatherQCID == 0 ? Dalobject.Save(model, Convert.ToInt32(Session["UserID"]), "ChemicalConsumption/ChemConsumption") : Dalobject.Update(model, Convert.ToInt32(Session["UserID"]));
     return(Json(new { CrustLeatherQCID = Dalobject.GetQCID(), CrustLeatherQCNo = Dalobject.GetQCNo(), msg = _vmMsg }));
 }
Пример #5
0
 public ActionResult ConfirmedCrustQC(PrdCrustLeatherQC model)
 {
     _vmMsg = Dalobject.ConfirmedCrustQC(model, Convert.ToInt32(Session["UserID"]));
     return(Json(new { msg = _vmMsg }));
 }