Skip to content

Instantly share code, notes, and snippets.

@stdray
Created January 3, 2015 20:39
Show Gist options
  • Select an option

  • Save stdray/d1e749338289ca0de215 to your computer and use it in GitHub Desktop.

Select an option

Save stdray/d1e749338289ca0de215 to your computer and use it in GitHub Desktop.
entity() <-
{
PublishInfo <-
{
Date <- date(src.commonInfo.publishDate);
ModificationInfo <- src.printForm.url;
Version <- str(src.commonInfo.versionNumber);
};
MainInfo <-
{
Description <- src.commonInfo.description;
DatesInfo <-
{
ConfirmDate <- date(src.commonInfo.confirmDate);
CreationDate <- date(src.commonInfo.createDate);
};
Year = str(src.commonInfo.year);
Description = src.commonInfo.description;
};
IdentityInfo <-
{
PlanGraphIdentity <- src.commonInfo.planNumber;
};
Customer <-
{
Person <-
{
GeneralInfo <-
{
INN <- src.customerInfo.customer.INN;
KPP <- src.customerInfo.customer.KPP;
PhysicalAddress <- src.customerInfo.customer.factAddress;
PostalAddress <- src.customerInfo.customer.postAddress;
RussianFullName <- src.customerInfo.customer.fullName;
RussianShortName <- src.customerInfo.customer.shortName;
//OGRN <- src.customerInfo.customer.regNum
};
};
PersonContacts = array
[
entity() <-
{
ContactInfo <-
{
ContactFio <- src.responsibleContactInfo.lastName + " "
+ src.responsibleContactInfo.firstName + " "
+ src.responsibleContactInfo.middleName;
Email <- src.responsibleContactInfo.email;
Fax <- array[ src.responsibleContactInfo.fax ];
Phone <- array [ src.responsibleContactInfo.phone ];
}
}
];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment