This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_method mass_switch.reserve_crv(old_crv_number, new_crv_number) | |
## | |
## | |
_if mass_switch_get_ccom() ~= "7172" _then _return _endif | |
_if old_crv_number = new_crv_number _then _return _endif | |
_if (a_crv << get_crv_from_tel(new_crv_number)) _is _unset _then | |
_return _endif | |
_if a_crv.is_free? _then | |
a_crv.reserve_mass_switch() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
ko.applyBindings(vm); | |
vm.initStreetsTable(); | |
$('#loading-dialog').dialog({ | |
autoOpen : false, | |
modal : true, | |
height : 90 | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package integration.tests; | |
import static org.junit.Assert.assertNotNull; | |
import static org.junit.Assert.assertTrue; | |
import java.util.List; | |
import javax.xml.bind.JAXBElement; | |
import org.junit.Before; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CsExceptions { | |
public static final String NON_SMALLWORLD_EXCEPTION_CODE = "3"; | |
public static final String REMOTE_SERVICE_EXCEPTION_CODE = "1"; | |
public static final String NO_SUCH_SERVICE_IN_DB_CODE = "2"; | |
public static final String SUCCESS_CODE = "0"; | |
public static final String NON_SMALLWORLD_EXCEPTION_MSG = "Данный сервис не принадлежит SW PNI"; | |
public static final String REMOTE_SERVICE_EXCEPTION_MSG = "Ошибка удаленного сервера SW PNI или АИС СПУТНИК"; | |
public static final String NO_SUCH_SERVICE_IN_DB_MSG = "Город или населенный пункт не существует в БД маршрутизации"; | |
public static final String SUCCESS_MSG = "Операция прошла успешно"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@XmlAccessorType(XmlAccessType.FIELD) | |
@XmlType | |
public class CsResult { | |
//@XmlAttribute | |
@XmlSchemaType(name="anyType") | |
protected Object result; | |
@XmlElement(type=String.class, required=true) | |
protected String errCode; | |
@XmlElement(type=String.class) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@WebMethod(operationName = "createWa") | |
public CsResult createWa( | |
@WebParam(name = "code") String code, | |
@WebParam(name = "ktId") String ktId, | |
@WebParam(name = "orderId") int orderId, | |
@WebParam(name = "packId") int packId, | |
@WebParam(name = "waType") int waType, | |
@WebParam(name = "townName") String townName, | |
@WebParam(name = "streetName") String streetName, | |
@WebParam(name = "streetTypeName") String streetTypeName, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#============================================================================== | |
# Tag | |
#============================================================================== | |
vendor.tag.AreaTag(at11): | |
label: China | |
vendor.tag.AreaTag(at12): | |
label: France | |
vendor.tag.FunctionTag(ft1): | |
label: Wedding | |
vendor.tag.FunctionTag(ft2): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import javax.management.RuntimeErrorException; | |
import models.Bloc; | |
import models.vendor.Vendor; | |
import models.vendor.tag.AreaTag; | |
import models.vendor.tag.FunctionTag; | |
import models.vendor.tag.Tag; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET /sw Service.list | |
GET /sw/check/{<[0-9]+>id} Service.check | |
GET /sw/{<[0-9]+>code} Service.service | |
GET /sw/address/{<[0-9]+>code}/sync Service.syncAddress | |
# Получение районов | |
# /sw/address/7212/regions | |
GET /sw/address/{<[0-9]+>code}/regions Service.regions | |
# Получение улиц по району |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public List<AddressInfo> getAddressData() throws IOException, SwException { | |
Object res = callReadOnlyMethod( | |
GET_ADDRESS_DATA, null); | |
Object[] aiArray = RawDataRetriever.getAddressInfoArray(res); | |
Preconditions.checkState(aiArray.length == 3); | |
Preconditions.checkState(aiArray[1] != null); | |
String defaultStreetName = aiArray[1].toString(); |