コード例 #1
0
        public ActionResult transportList()
        {
            reptransportList list = new reptransportList();

            DDPickup_point(list);

            return(View(list));
        }
コード例 #2
0
        public ActionResult transportList(reptransportList pickup_id)
        {
            reptransportList     list = new reptransportList();
            reptransportListMain dues = new reptransportListMain();

            List <int> pick_id = new List <int>();

            foreach (var i in pickup_id.pickup)
            {
                pick_id.Add(i);
            }

            dues.pdfTransport_list(pick_id);
            DDPickup_point(list);
            return(View(list));
        }
コード例 #3
0
        public void DDPickup_point(reptransportList list)
        {
            mst_transportMain mstTransport = new mst_transportMain();

            var transport_list = mstTransport.AllTransportList();

            List <pickup_list> mst = new List <pickup_list>();

            //mst.Add(new pickup_list { pickup_id = 999, pickup_point = "Whole Transport" });

            foreach (var lst in transport_list)
            {
                mst.Add(new pickup_list {
                    pickup_id = lst.pickup_id, pickup_point = lst.pickup_point
                });
            }

            list.pickup_list = mst;

            //IEnumerable<SelectListItem> list1 = new SelectList(mst, "pickup_id", "pickup_point");

            //ViewData["pickup_id"] = list1;
        }