Any person, corporation, or agent who shall violate a provision of the technical codes or fail to comply therewith or with any of the requirements thereof, or who shall erect, construct, alter, install, demolish, or move any structure, electrical, gas, mechanical, or plumbing system, or has erected, constructed, altered, repaired, moved, or demolished a building, electrical, gas, mechanical, or plumbing system, in violation of a detailed statement or drawing submitted and permitted thereunder, shall be guilty of a misdemeanor. Each such person shall be considered guilty of a separate offense for each and every day or portion thereof during which any violation of any of the provisions of the technical code is committed or continued, and upon conviction of any such violation such person shall be punished within the limits and as provided by state law.