Example #1
0
        public static void moveDown_DataRecord(String sCategory, int iID)
        {
            CRecords myRecs = new CRecords();

            String dataFileName = System.Configuration.ConfigurationManager.AppSettings["LegoWebFilesPhysicalPath"].ToString() + "File/Data/" + System.Threading.Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName + "\\" + sCategory + ".xml";

            if (File.Exists(dataFileName))
            {
                myRecs.load_File(dataFileName);
            }
            else
            {
                myRecs.Save(dataFileName);
            }
            myRecs.Filter("001", iID.ToString(), true);
            if (myRecs.Count > 0)
            {
                CRecord moveRec = myRecs.Record(0);
                moveRec.MoveUp();
            }
            myRecs.Save(dataFileName);
        }