public ActionResult GetExpPIItemAndColorList(string PIID, string OrdDeliveryMode)
        {
            EXPCI model = new EXPCI();

            if (string.IsNullOrEmpty(PIID))
            {
                return(Json(model, JsonRequestBehavior.AllowGet));
            }
            model.ExpCIPIItemList = Dalobject.GetExpPIItemList(PIID, OrdDeliveryMode);
            if (model.ExpCIPIItemList.Count > 0)
            {
                model.ExpCIPIItemColorList = Dalobject.GetExpPIItemColorList(model.ExpCIPIItemList[0].PIItemID.ToString(), OrdDeliveryMode);
                //model.BuyerOrderPriceList = Dalobject.GetBuyerOrderPriceList(PIID);
            }
            return(Json(model, JsonRequestBehavior.AllowGet));
        }
        public ActionResult GetAllGridList(string CIPIID)
        {
            EXPCI model = new EXPCI();

            if (string.IsNullOrEmpty(CIPIID))
            {
                return(Json(model, JsonRequestBehavior.AllowGet));
            }
            model.ExpCIPIItemList = Dalobject.GetExpCIPIItemList(CIPIID);
            if (model.ExpCIPIItemList.Count > 0)
            {
                model.ExpCIPIItemColorList = Dalobject.GetExpCIItemColorList(model.ExpCIPIItemList[0].CIPIItemID.ToString());
                //model.BuyerOrderPriceList = Dalobject.GetBuyerOrderPriceList(PIID);
            }

            return(Json(model, JsonRequestBehavior.AllowGet));
        }
 public ActionResult CheckedEXPCI(EXPCI model)
 {
     _vmMsg = Dalobject.ConfirmedEXPCI(model, Convert.ToInt32(Session["UserID"]));
     return(Json(new { msg = _vmMsg }));
 }
 public ActionResult EXPCI(EXPCI model)
 {
     _vmMsg = model.CIID == 0 ? Dalobject.Save(model, Convert.ToInt32(Session["UserID"]), "EXPCI/EXPCI") : Dalobject.Update(model, Convert.ToInt32(Session["UserID"]));
     return(Json(new { CIID = Dalobject.GetCIID(), CINo = Dalobject.GetCINo(), CIPIID = Dalobject.GetCIPIID(), msg = _vmMsg }));
 }