The winding method and model of a superconducting bending dipole for hadrontherapy