Skip to content

Instantly share code, notes, and snippets.

View klondaiker's full-sized avatar
🌴

Alex Zavgorodnev klondaiker

🌴
View GitHub Profile
public Dictionary<string, object> SaveReviz(Dictionary<string, object> value)
{
var rlc = (RevizListController) Controller(Code);
RevizUpdController ruc = rlc.UpdController;
var result = new Dictionary<string, object> {{"result", false}};
try
{
/*
+ [1] {LINK_SELF} object {System.Data.DataColumn}
+ [4] {PLANREVIZ} object {System.Data.DataColumn}
{"currentUser":null,"entries":[{"can_moderate":false,"can_report":false,"id":9,"type":"text","author":{"id":73,"locale":"ru","name":"blog44","slug":"blog44","title":null,"is_female":true,"is_daylog":null,"tlog_url":"http://test.host:8006/~blog44","is_flow":false,"created_at":"2016-04-05T06:31:40.550+00:00","updated_at":"2016-04-05T06:31:40.670+00:00","tag":"~blog44","gender":"f","is_premium":false,"has_design_bundle":false,"total_entries_count":1,"private_entries_count":0,"public_entries_count":0,"is_privacy":null,"userpic":{"symbol":"b","kind":"user","default_colors":{"background":"#ffca00","name":"#222222"}},"features":{"search":false,"notification":false,"flows":false,"fixup":true},"followings_count":1},"comments_count":0,"tlog":{"id":73,"title":null,"tlog_url":"http://test.host:8006/~blog44","tag":"~blog44","total_entries_count":1,"public_entries_count":0,"private_entries_count":0,"slug":"blog44","created_at":"2016-04-05T06:31:40.000+00:00","updated_at":"2016-04-05T06:31:40.000+00:00","is_privacy":null,"a
ActionView::Template::Error: Encountered error "ReferenceError: document is not defined" when prerendering FeedLivePage with {"currentUser":null,"entries":[{"can_moderate":false,"can_report":false,"id":144,"type":"text","author":{"id":549,"locale":"ru","name":"blog110","slug":"blog110","title":null,"is_female":true,"is_daylog":null,"tlog_url":"http://test.host:8006/~blog110","is_flow":false,"created_at":"2016-04-14T12:00:02.634+03:00","updated_at":"2016-04-14T12:00:02.775+03:00","tag":"~blog110","gender":"f","is_premium":false,"has_design_bundle":false,"total_entries_count":1,"private_entries_count":0,"public_entries_count":0,"is_privacy":null,"userpic":{"symbol":"b","kind":"user","default_colors":{"background":"#ffca00","name":"#222222"}},"features":{"search":false,"notification":false,"flows":false,"fixup":true},"followings_count":1},"comments_count":0,"tlog":{"id":549,"title":null,"tlog_url":"http://test.host:8006/~blog110","tag":"~blog110","total_entries_count":1,"public_entries_count":0,"private_entries_
PUT https://85.234.7.108:443/test/odata/standard.odata/Catalog_%D0%9F%D0%B0%D1%80%D1%82%D0%BD%D0%B5%D1%80%D1%8B(guid'23423e99-456d-11e5-80bb-002590f2acf7')
Data: {"__metadata":{"uri":{"scheme":"https","user":null,"password":null,"host":"85.234.7.108","port":443,"path":"/test/odata/standard.odata/Catalog_%D0%9F%D0%B0%D1%80%D1%82%D0%BD%D0%B5%D1%80%D1%8B(guid'23423e99-456d-11e5-80bb-002590f2acf7')","query":null,"opaque":null,"fragment":null,"parser":{"regexp":{"SCHEME":"(?-mix:\\A[A-Za-z][A-Za-z0-9+\\-.]*\\z)","USERINFO":"(?-mix:\\A(?:%\\h\\h|[!$\u0026-.0-;=A-Z_a-z~])*\\z)","HOST":"(?-mix:\\A(?:(?\u003cIP-literal\u003e\\[(?:(?\u003cIPv6address\u003e(?:\\h{1,4}:){6}(?\u003cls32\u003e\\h{1,4}:\\h{1,4}|(?\u003cIPv4address\u003e(?\u003cdec-octet\u003e[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5]|\\d)\\.\\g\u003cdec-octet\u003e\\.\\g\u003cdec-octet\u003e\\.\\g\u003cdec-octet\u003e))|::(?:\\h{1,4}:){5}\\g\u003cls32\u003e|\\h{,4}::(?:\\h{1,4}:){4}\\g\u003cls32\u003e|(?:(?:\\h{1,4}:)?\\h{1,4})?::(?:\\h{1,4}:){3}\\g\u003cls32\u003e
name, type, nullable
[["Ref_Key", "Edm.Guid", false],
["Predefined", "Edm.Boolean", true],
["PredefinedDataName", "Edm.String", true],
["DataVersion", "Edm.String", true],
["Description", "Edm.String", true],
["DeletionMark", "Edm.Boolean", true],
["ВидОбменаСКонтролирующимиОрганами", "Edm.String", true],
["Военкомат", "Edm.String", true],
<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom"
xmlns:at="http://purl.org/atompub/tombstones/1.0"
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
xml:base="https://85.234.7.108/test/odata/standard.odata/">
<entry>
<id>https://85.234.7.108/test/odata/standard.odata/Catalog_Организации(guid'addd5d7a-2f02-11e7-80c3-0cc47a9a9dcf')</id>
<category term="StandardODATA.Catalog_Организации"
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
<title type="text"/>
@klondaiker
klondaiker / gist:1f58524303731509c13dde8d842db35f
Created November 16, 2017 20:34
Все Таблицы из 1c
["AccumulationRegisterТоварыНаСкладах",
"AccumulationRegisterТоварыНаСкладахBalance",
"AccumulationRegisterТоварыНаСкладахBalanceandturnover",
"AccumulationRegisterТоварыНаСкладахRecordtype",
"AccumulationRegisterТоварыНаСкладахRowtype",
"AccumulationRegisterТоварыНаСкладахTurnover",
"BinaryDataQualifiers",
"CatalogАвансовыйОтчетПрисоединенныеФайлы",
"CatalogАвансовыйОтчетПрисоединенныеФайлыСертификатыШифрования",
"CatalogАвансовыйОтчетПрисоединенныеФайлыСертификатыШифрованияRowtype",
[#<CatalogСоглашенияСКлиентами:0x007f7066029620
@DataVersion="AAAAAAAeMAo=",
@DeletionMark="false",
@Description="1",
@Predefined="false",
@PredefinedDataName="",
@Ref_Key="08225bc7-242c-11e7-80c3-0cc47a9a9dcf",
@Валюта_Key="fd2c87e4-8d0a-11e4-a7ae-929ffa84a242",
@ВалютаВзаиморасчетов_Key="fd2c87e4-8d0a-11e4-a7ae-929ffa84a242",
@ВариантРасчетаЦен="ВидЦенВШапке",
@klondaiker
klondaiker / gist:d269d0401332973c1c1f312df5e45a58
Created November 16, 2017 21:04
Пример заказа
[#<DocumentЗаказКлиента:0x007f70632decb0
@DataVersion="AAAAAAAejW4=",
@Date="2014-07-23T12:00:00",
@DeletionMark="false",
@Number="УУУТ-000092",
@Posted="true",
@Ref_Key="25de53a1-c40a-11e4-a5b5-52540043a217",
@Автор="95294f6e-97d4-11e4-905f-206a8a37efac",
@Автор_Type="StandardODATA.Catalog_Пользователи",
@АдресДоставки="428020, Чувашская Республика - Чувашия, Чебоксары г, И.Я.Яковлева пр-кт, дом № 5",
@klondaiker
klondaiker / gist:7981a949420eb3bdb858cdf5746a03c2
Created November 16, 2017 21:09
Номенклатура
#<CatalogНоменклатура:0x007f70676d99b0
@Code="БП-00000001",
@DataVersion="AAAAAAAc4tA=",
@DeletionMark="false",
@Description="Пени",
@IsFolder="false",
@Parent_Key="00000000-0000-0000-0000-000000000000",
@Predefined="false",
@PredefinedDataName="",
@Ref_Key="8e194381-4197-11e5-80bd-002590f2acf7",