예제 #1
0
        public ActionResult Company(int id)
        {
            var     tableName = "co";
            DataRow row       = MyExcel.GetDetails(tableName, id);

            //пока не буду делать связки

            return(View(row));
        }
예제 #2
0
        public ActionResult Exit(int id)
        {
            var     tableName = "e";
            DataRow row       = MyExcel.GetDetails(tableName, id);

            var fundsTmp = MyExcel.GetDetailsList("fe", $"[Номер выхода]='{id}'");
            var fundsIds = String.Join(", ", fundsTmp.Select(x => $"'{x["Id"]}'").ToArray());

            fundsIds = fundsIds != "" ? fundsIds : "NULL";
            var funds = MyExcel.GetDetailsList("f_2", $"[Id] In ({fundsIds})");

            ViewBag.funds = funds;

            return(View(row));
        }
예제 #3
0
        private ActionResult DefaultDetais(string tableName, int id)
        {
            DataRow row = MyExcel.GetDetails(tableName, id);

            return(View(row));
        }