DevTreks.Data/AppHelpers/Prices.cs
/// <summary>
/// Copy and change operation attributes from base schemas to join schemas 
/// </summary>
Copy and change operation attributes from base schemas to join schemas
Copy and change operation attributes from base schemas to join schemas
private static void ChangeOperationComponentStandardAttributes(XmlReader selectedNodeReader,
            ref string baseTableId, XmlWriter writer)
        {
            string sAttName = string.Empty;
            string sAttValue = string.Empty;
            sAttName = Calculator.cId;
            sAttValue = selectedNodeReader.GetAttribute(sAttName);
            writer.WriteAttributeString(sAttName, sAttValue);
            baseTableId = sAttValue;
            sAttName = Calculator.cLabel;
            writer.WriteAttributeString(sAttName, selectedNodeReader.GetAttribute(sAttName));
            sAttName = Calculator.cName;
            writer.WriteAttributeString(sAttName, selectedNodeReader.GetAttribute(sAttName));
            sAttName = Calculator.cDescription;
            writer.WriteAttributeString(sAttName, selectedNodeReader.GetAttribute(sAttName));
            sAttName = WEIGHT;
            writer.WriteAttributeString(sAttName, selectedNodeReader.GetAttribute(sAttName));
            sAttName = General.AMOUNT;
            writer.WriteAttributeString(sAttName, selectedNodeReader.GetAttribute(sAttName));
            sAttName = General.UNIT;
            writer.WriteAttributeString(sAttName, selectedNodeReader.GetAttribute(sAttName));
            sAttName = EFFECTIVE_LIFE;
            writer.WriteAttributeString(sAttName, selectedNodeReader.GetAttribute(sAttName));
            sAttName = SALVAGE_VALUE;
            writer.WriteAttributeString(sAttName, selectedNodeReader.GetAttribute(sAttName));
            sAttName = General.INCENTIVE_RATE;
            writer.WriteAttributeString(sAttName, selectedNodeReader.GetAttribute(sAttName));
            sAttName = General.INCENTIVE_AMOUNT;
            writer.WriteAttributeString(sAttName, selectedNodeReader.GetAttribute(sAttName));
            sAttName = Calculator.cDate;
            writer.WriteAttributeString(sAttName, selectedNodeReader.GetAttribute(sAttName));
        }
private static void ChangeOperationComponentStandardAttributes ( XmlReader selectedNodeReader , ref string baseTableId , XmlWriter writer ) { string sAttName = string . Empty ; string sAttValue = string . Empty ; sAttName = Calculator . cId ; sAttValue = selectedNodeReader . GetAttribute ( sAttName ) ; writer . WriteAttributeString ( sAttName , sAttValue ) ; baseTableId = sAttValue ; sAttName = Calculator . cLabel ; writer . WriteAttributeString ( sAttName , selectedNodeReader . GetAttribute ( sAttName ) ) ; sAttName = Calculator . cName ; writer . WriteAttributeString ( sAttName , selectedNodeReader . GetAttribute ( sAttName ) ) ; sAttName = Calculator . cDescription ; writer . WriteAttributeString ( sAttName , selectedNodeReader . GetAttribute ( sAttName ) ) ; sAttName = WEIGHT ; writer . WriteAttributeString ( sAttName , selectedNodeReader . GetAttribute ( sAttName ) ) ; sAttName = General . AMOUNT ; writer . WriteAttributeString ( sAttName , selectedNodeReader . GetAttribute ( sAttName ) ) ; sAttName = General . UNIT ; writer . WriteAttributeString ( sAttName , selectedNodeReader . GetAttribute ( sAttName ) ) ; sAttName = EFFECTIVE_LIFE ; writer . WriteAttributeString ( sAttName , selectedNodeReader . GetAttribute ( sAttName ) ) ; sAttName = SALVAGE_VALUE ; writer . WriteAttributeString ( sAttName , selectedNodeReader . GetAttribute ( sAttName ) ) ; sAttName = General . INCENTIVE_RATE ; writer . WriteAttributeString ( sAttName , selectedNodeReader . GetAttribute ( sAttName ) ) ; sAttName = General . INCENTIVE_AMOUNT ; writer . WriteAttributeString ( sAttName , selectedNodeReader . GetAttribute ( sAttName ) ) ; sAttName = Calculator . cDate ; writer . WriteAttributeString ( sAttName , selectedNodeReader . GetAttribute ( sAttName ) ) ; }
Copy and change operation attributes from base schemas to join schemas
Copy and change operation attributes from base schemas to join schemas
//write existing attributes //write subapplication specific attributes //use the existing attvalue
selectedNodeReader
XmlReader
string
ref
writer
XmlWriter