protected void HandleChanges(object sender, BeforeStoreChangedEventArgs e) { ChangeRecords <MathRule> mathRule = e.DataHandler.ObjectData <MathRule>(); XMLProcess xmlProcess = new XMLProcess(); foreach (var item in mathRule.Updated) { xmlProcess.Update(Server.MapPath(MathRuleXmlUrl), item); GridPanel1.UpdateCell(item.ColumnInDB, "MathStatus", "true"); if (Store1.UseIdConfirmation) { e.ConfirmationList.ConfirmRecord(item.ColumnInDB.ToString()); } hdfMathStatus.Text = hdfMathStatus.Text.Replace(item.ColumnInDB + ",", ""); } }
public static void UpdateProcess(Process proc) { XMLProcess.Update(proc.Guid, proc.Status, proc.Date); }