protected override DomainRowInfo[] OnSetRow(DomainMember domainMember, DomainRowInfo[] rows, SignatureDateProvider signatureProvider) { this.template.SignatureDateProvider = signatureProvider; for (var i = 0; i < rows.Length; i++) { rows[i].Fields = CremaDomainUtility.SetFields(this.view, rows[i].Keys, rows[i].Fields); } this.data = null; return(rows); }
protected override DomainRowInfo[] OnSetRow(DomainMember domainMember, DomainRowInfo[] rows, SignatureDateProvider signatureProvider) { this.dataType.SignatureDateProvider = signatureProvider; try { for (var i = 0; i < rows.Length; i++) { rows[i].Fields = CremaDomainUtility.SetFields(this.view, rows[i].Keys, rows[i].Fields); } this.dataType.AcceptChanges(); this.data = null; return(rows); } catch { this.dataType.RejectChanges(); throw; } }
protected override DomainRowInfo[] OnSetRow(DomainUser domainUser, DomainRowInfo[] rows, SignatureDateProvider signatureProvider) { this.dataSet.SignatureDateProvider = signatureProvider; try { for (var i = 0; i < rows.Length; i++) { var view = this.views[rows[i].TableName]; rows[i].Fields = CremaDomainUtility.SetFields(view, rows[i].Keys, rows[i].Fields); } this.dataSet.AcceptChanges(); return(rows); } catch (Exception e) { this.dataSet.RejectChanges(); throw e; } }
protected override DomainRowInfo[] OnSetRow(DomainUser domainUser, DomainRowInfo[] rows, SignatureDateProvider signatureProvider) { this.dataType.SignatureDateProvider = signatureProvider; try { for (int i = 0; i < rows.Length; i++) { rows[i].Fields = CremaDomainUtility.SetFields(this.view, rows[i].Keys, rows[i].Fields); } this.dataType.AcceptChanges(); return(rows); } catch (Exception e) { this.CremaHost.Error(e); this.dataType.RejectChanges(); throw e; } }