DevTreks.Data/AppHelpers/Prices.cs
/// <summary>
/// Copy and change output attributes over to output attributes that are specific to a subapplication
/// </summary>
Copy and change output attributes over to output attributes that are specific to a subapplication
Copy and change output attributes over to output attributes that are specific to a subapplication
private static void ChangeOutputSubApplicationAttributes(Helpers.GeneralHelpers.SUBAPPLICATION_TYPES subAppType,
            string parentId, string baseTableId, XmlWriter writer)
        {
            writer.WriteAttributeString(COMPOSITION_AMOUNT, "1");
            writer.WriteAttributeString(COMPOSITION_UNIT, "acre");
            if (subAppType == Helpers.GeneralHelpers.SUBAPPLICATION_TYPES.budgets)
            {
                writer.WriteAttributeString(Economics1.BUDGETSYSTEM_TO_TIME_ID, parentId);
            }
            else if (subAppType == Helpers.GeneralHelpers.SUBAPPLICATION_TYPES.investments)
            {
                writer.WriteAttributeString(Economics1.COSTSYSTEM_TO_TIME_ID, parentId);
            }
            writer.WriteAttributeString(OUTPUT_ID, baseTableId);
        }
private static void ChangeOutputSubApplicationAttributes ( Helpers . GeneralHelpers . SUBAPPLICATION_TYPES subAppType , string parentId , string baseTableId , XmlWriter writer ) { writer . WriteAttributeString ( COMPOSITION_AMOUNT , " " ) ; writer . WriteAttributeString ( COMPOSITION_UNIT , " " ) ; if ( subAppType == Helpers . GeneralHelpers . SUBAPPLICATION_TYPES . budgets ) { writer . WriteAttributeString ( Economics1 . BUDGETSYSTEM_TO_TIME_ID , parentId ) ; } else if ( subAppType == Helpers . GeneralHelpers . SUBAPPLICATION_TYPES . investments ) { writer . WriteAttributeString ( Economics1 . COSTSYSTEM_TO_TIME_ID , parentId ) ; } writer . WriteAttributeString ( OUTPUT_ID , baseTableId ) ; }
Copy and change output attributes over to output attributes that are specific to a subapplication
Copy and change output attributes over to output attributes that are specific to a subapplication
//write new attributes //write subapplication specific attributes
subAppType
Helpers.GeneralHelpers.SUBAPPLICATION_TYPES
parentId
string
baseTableId
string
writer
XmlWriter