Пример #1
0
 //納品前
 public ActionResult BeforeDeliveryList()
 {
     ViewBag.CustomerSelectOptions         = new SelectList(BeforeDeliveryData.GetCustomerSelectListItems(), "Value", "Text");
     ViewBag.ManufacturerSelectOptions     = new SelectList(BeforeDeliveryData.GetManufacturerSelectListItems(), "Value", "Text");
     ViewBag.ResponsibleStaffSelectOptions = new SelectList(BeforeDeliveryData.GetStaffSelectListItems(), "Value", "Text");
     ViewBag.HelperSelectOptions           = new SelectList(BeforeDeliveryData.GetHelperSelectListItems(), "Value", "Text");
     return(View());
 }
Пример #2
0
 public ActionResult BeforeDeliveryContent(int customer_Id, int manufacturer_Id, string keywords, int responsibleStaff_Id,
                                           int helper_Id, DateTime startDate, DateTime endDate)
 {
     if (Request.IsAjaxRequest())
     {
         BeforeDeliveryData data = new BeforeDeliveryData();
         var results             = data.GetSpecificWordGroup(customer_Id, manufacturer_Id, keywords, responsibleStaff_Id, helper_Id,
                                                             startDate, endDate);
         if (results.Count() == 0)
         {
             return(PartialView("_NoResult"));
         }
         else
         {
             return(PartialView("_BeforeDeliveryContent", results));
         }
     }
     return(Content("Ajax通信以外のアクセスはできません"));
 }