This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| var addresses = ['Метрополь', '2', '1', '2a', '1/10', '2b/21/3', '4', '3в', '11b', '3b/4', '№3a/4']; | |
| function compareAddresses(adr1, adr2) { | |
| var nums = getNumberArray(adr1); | |
| var nums2 = getNumberArray(adr2); | |
| var res = compareArrays(nums, nums2); | |
| if (res == 0) { | |
| res = compareStrings(adr1, adr2); |