Beispiel #1
0
 public ActionResult PurchaseContent(string supplier, string manufacturer, string keywords, int staff_Id,
                                     DateTime purchaseStartDate, DateTime purchaseEndDate,
                                     DateTime receiptStartDate, DateTime receiptEndDate)
 {
     if (Request.IsAjaxRequest())
     {
         PurchaseData data    = new PurchaseData();
         var          results = data.GetSpecificWordGroup(supplier, manufacturer, keywords, staff_Id, purchaseStartDate,
                                                          purchaseEndDate, receiptStartDate, receiptEndDate);
         if (results.Count() == 0)
         {
             return(PartialView("_NoResult"));
         }
         else
         {
             return(PartialView("_PurchaseContent", results));
         }
     }
     return(Content("Ajax通信以外のアクセスはできません"));
 }