Using equations of motion with the anisotropic dissipative term for quantum particle and quantum-mechanical commutation rules, the general Maxwell-type differential equations are derived. The direct modifications of the well-known Maxwell equations due to the medium effects (openness of the system) are discussed.