// POST: SerialList/Search public ActionResult SearchFromOutSide(string SearchKey) { SerialListModels models = new SerialListModels(); models.SelectPage = 1; if (!string.IsNullOrEmpty(SearchKey)) { int IntLen = SearchKey.Length; if (IntLen > 4) { models.SearchSONo = SearchKey; } else { models.SearchSerialStatus = SearchKey; } } models.SetSearchWhere(); models.SetPageNum(); models.SetRstSerialList(); models.SetDropDownListSerialStatus(); models.SetDropDownListInstruction(); return(View("SerialList", models)); }
public ActionResult DLcsv(SerialListModels models) { // Contentをクリア Response.ClearContent(); // Contentを設定 Response.ContentEncoding = System.Text.Encoding.GetEncoding("shift-jis"); Response.ContentType = "text/csv"; // 表示ファイル名を指定 DateTime DTImportTime = DateTime.Now; string StrImportTime = DTImportTime.ToString("yyyyMMddHHmmss"); string viewFileName = HttpUtility.UrlEncode(StrImportTime + "_シリアルリスト.csv"); Response.AddHeader("Content-Disposition", "attachment;filename=" + viewFileName); // CSVデータを作成 models.SetSearchWhere(); models.MakeCsvData(); // CSVデータを書き込み Response.Write(models.stbCsvData.ToString()); // ダウンロード実行 Response.Flush(); Response.End(); return(View()); }
public ActionResult PageSearch(SerialListModels models) { models.SetSearchWhere(); models.SetPageNum(); models.SetRstSerialList(); models.SetDropDownListSerialStatus(); models.SetDropDownListInstruction(); return(View("SerialList", models)); }
public ActionResult Edit(SerialListModels ListModels) { SerialEditModels EditModels = new SerialEditModels(); EditModels.SerialID = ListModels.SelectSerialID; EditModels.SetSerialInfo(); EditModels.SetDropDownListInstruction(); return(View("SerialEdit", EditModels)); }
public ActionResult Index() { SerialListModels models = new SerialListModels(); // models.SetSearchWhere(); // models.SetRstSerialList(); // 初期設定 models.DataCnt = 0; models.SetDropDownListSerialStatus(); models.SetDropDownListInstruction(); return(View("SerialList", models)); }
public ActionResult NG(SerialListModels models) { models.UpdateNgFlg(); return(Search(models)); }