示例#1
0
        public ActionResult GetAllGridList(string ScheduleNo, string StoreId)
        {
            PrdYearMonth model = new PrdYearMonth();

            if (string.IsNullOrEmpty(ScheduleNo))
            {
                return(Json(model, JsonRequestBehavior.AllowGet));
            }
            model.PrdYearMonthScheduleDateList = Dalobject.GetYearMonthScheduleDateList(ScheduleNo);
            if (model.PrdYearMonthScheduleDateList.Count > 0)
            {
                model.PrdYearMonthSchedulePurchaseList = Dalobject.GetYearMonthSchedulePurchaseList(model.PrdYearMonthScheduleDateList[0].ScheduleDateID.ToString(), StoreId);
            }
            return(Json(model, JsonRequestBehavior.AllowGet));
        }
示例#2
0
 public ActionResult WetBlueProductionSchedule(PrdYearMonth model)
 {
     _vmMsg = model.YearMonID == 0 ? Dalobject.Save(model, Convert.ToInt32(Session["UserID"]), "WetBlueProductionSchedule/WetBlueProductionSchedule") : Dalobject.Update(model, Convert.ToInt32(Session["UserID"]));
     return(Json(new { YearMonID = Dalobject.GetYearMonID(), ScheduleNo = Dalobject.GetScheduleNo(), msg = _vmMsg }));
 }
示例#3
0
 public ActionResult ExecuteWetBlueProductionSchedule(PrdYearMonth model)
 {
     _vmMsg = Dalobject.ExecuteWetBlueProductionSchedule(model, Convert.ToInt32(Session["UserID"]));
     return(Json(new { msg = _vmMsg }));
 }