示例#1
0
        public JsonResult GetShipById(string id)
        {
            ShipBL shipBL = new ShipBL();
            Ship   ship   = new Ship();

            ship = shipBL.GetShipDetailsById(Convert.ToInt32(id));


            return(Json(ship, JsonRequestBehavior.AllowGet));
        }
示例#2
0
        public JsonResult GetIMONumberByShip(string shipId)
        {
            ApproverMaster approver = new ApproverMaster();
            ShipBL         shipBL   = new ShipBL();
            Ship           ship     = new Ship();

            ship = shipBL.GetShipDetailsById(Convert.ToInt32(shipId));
            approver.VesselIMONumber = ship.IMONumber;
            approver.Ship            = ship;

            return(Json(approver, JsonRequestBehavior.AllowGet));
        }