Esempio n. 1
0
/*====================================================*/

        public void AddList(cDataObjectList aDataObjectList)
        {
            foreach (cDataObject aDataObject in aDataObjectList)
            {
                mDataObjectList.Add(aDataObject);
            }
        }
Esempio n. 2
0
/*====================================================*/
/*populate DataSet in DataObjectList with data*/

        public void PopulateDataSet(cDataObjectList aDataObjectList)
        {
            String aDataSourceKey;

            aDataSourceKey = cXMLDoc.AttributeToString(aDataObjectList.ObjDefNode, "DataSourceKey");

            GetDataProvider(aDataSourceKey).PopulateDataSet(aDataObjectList);
        }
Esempio n. 3
0
/*-----------------------------------------------------*/

        public void DeleteData(cDataObjectList aDataObjectList)
        {
            if (mUser != null)
            {
                aDataObjectList.UserID = mUser.UserID;
            }

            foreach (cDataObject aDataObject in aDataObjectList)
            {
                DeleteData(aDataObject);
            }
        }
Esempio n. 4
0
/*====================================================*/

/* DataPresenter calls this function when updating or inserting data*/

        public void SaveDataObject(cDataObjectList aDataObjectList)
        {
            //iterate through DO's in list and call SaveDataObject(aDO)
            if (mUser != null)
            {
                aDataObjectList.UserID = mUser.UserID;
            }

            foreach (cDataObject aDataObject in aDataObjectList)
            {
                SaveDataObject(aDataObject);
            }
        }
Esempio n. 5
0
/*-----------------------------------------------------*/

/* creates DataObjects by extracting a data row from DataSet
 *      adds DataObject to DataObjectList*/

        public cDataObjectList PopulateDataObjectList(cDataObjectList aDataObjectList)
        {
            int       i;
            DataTable aTable;
            XmlNode   aClassNode;

            PopulateDataSet(aDataObjectList);

            aTable     = aDataObjectList.ObjDataSet.Tables[aDataObjectList.DefinitionKey];
            aClassNode = aDataObjectList.ObjDefNode.SelectSingleNode("Class");

            for (i = 0; i <= aTable.Rows.Count - 1; i++)
            {
                cDataObject aDataObject;

                aDataObject = CreateDataObject(aTable.Rows[i], aDataObjectList, aClassNode);
                //aDataObject = new cDataObject(aTable.Rows[i], aDataObjectList.ObjDefNode);
                aDataObjectList.Add(aDataObject);
            }
            return(aDataObjectList);
        }
Esempio n. 6
0
/*-----------------------------------------------------*/

	public cSubmittedFile(DataRow aDataObjectRow, cDataObjectList aDataObjectList)
		: base(aDataObjectRow, aDataObjectList) 
	{
	}
Esempio n. 7
0
/*-----------------------------------------------------*/
/* return the first object in the DataObjectList*/

        public cDataObject PopulateDataObject(cDataObjectList aDataObjectList)
        {
            return(PopulateDataObjectList(aDataObjectList)[0]);
        }
Esempio n. 8
0
/*-----------------------------------------------------*/

        public cDataObject CreateDataObject(DataRow aRow, cDataObjectList aDataObjectList, XmlNode aClassNode)
        {
            Object[] aArgs = { aRow, aDataObjectList };

            return((cDataObject)cReflection.InstantiateObjectFromXMLClassNode(aClassNode, aArgs));
        }
Esempio n. 9
0
        /*-----------------------------------------------------*/

        public cImportedFile(DataRow aDataObjectRow, cDataObjectList aDataObjectList)
            : base(aDataObjectRow, aDataObjectList)
        {
        }
Esempio n. 10
0
/*-----------------------------------------------------*/

        public virtual void PopulateDataSet(cDataObjectList aObjList)
        {
        }