Two-Dimensional Gauge Theories in BV Formalism and Gluing-Cutting