예제 #1
0
        /// <summary>
        /// Reads properties of "Business process" metadata objects
        /// </summary>
        /// <param name="connection"></param>
        /// <param name="conf"></param>
        /// <param name="ct"></param>
        /// <returns></returns>
        private async Task ReadBusinessProcessesAsync(DbConnection connection, BracketsFileNode conf, CancellationToken ct)
        {
            var objectGuids = GetMetadataObjectGuids(conf.GetNode(7, 1, 4));

            foreach (var objectGuid in objectGuids)
            {
                var objectInfo = BracketsFileParser.Parse(await GetStringConfigFileDataAsync(connection, objectGuid, ct));

                var obj = ReadMetadataObject <BusinessProcess>(objectInfo.GetNode(1, 1), objectGuid);

                var objectDetailsNodesCount = (int)objectInfo.GetNode(2);

                for (int i = 3; i < (3 + objectDetailsNodesCount); i++)
                {
                    var objectDetailsNode = objectInfo.GetNode(i);

                    var objectDetailsNodeGuid = (string)objectDetailsNode.GetNode(0);

                    switch (objectDetailsNodeGuid)
                    {
                    case "87c988de-ecbf-413b-87b0-b9516df05e28":
                        obj.Requisities = ReadRequisities(objectDetailsNode);
                        break;

                    case "a3fe6537-d787-40f7-8a06-419d2f0c1cfd":
                        obj.TabularSections = ReadTabularSections(objectDetailsNode);
                        break;

                    default:
                        continue;
                    }
                }

                BusinessProcesses.Add(obj);
            }
        }
예제 #2
0
 public getUnPaidPeriodsResponse(BusinessProcesses.BillingServices.period[] @return)
 {
     this.@return = @return;
 }
예제 #3
0
 public getCurrentPeriodResponse(BusinessProcesses.BillingServices.period @return)
 {
     this.@return = @return;
 }
예제 #4
0
 public doQueryRequest(BusinessProcesses.BillingServices.query theQuery)
 {
     this.theQuery = theQuery;
 }