本文整理汇总了C#中PartnerEditTDS.GetXml方法的典型用法代码示例。如果您正苦于以下问题:C# PartnerEditTDS.GetXml方法的具体用法?C# PartnerEditTDS.GetXml怎么用?C# PartnerEditTDS.GetXml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PartnerEditTDS
的用法示例。
在下文中一共展示了PartnerEditTDS.GetXml方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SaveChanges
//.........这里部分代码省略.........
}
// If changes have been made to pm_staff_data (commitments) then update the partner's family's Gift Destination records
TGiftDestination GiftDestination = new TGiftDestination();
if (GiftDestination.UpdateGiftDestination(ref AInspectDS))
{
// set the gift destination on this screen and all other open partner edit screens for the same family
SetGiftDestinationAllScreens();
}
SubmitDS = AInspectDS.GetChangesTyped(true);
if (SubmitDS == null)
{
// There is nothing to be saved.
// Update UI
FPetraUtilsObject.WriteToStatusBar(MCommonResourcestrings.StrSavingDataNothingToSave);
this.Cursor = Cursors.Default;
// We don't have unsaved changes anymore
FPetraUtilsObject.DisableSaveButton();
return true;
}
if ((SubmitDS.Tables.Contains(PPartnerAttributeTable.GetTableName()))
|| (SubmitDS.Tables.Contains(PPartnerRelationshipTable.GetTableName())))
{
PartnerAttributesOrRelationsChanged = true;
}
#if DATASETDEBUGGING
TLogging.Log("Before submitting data to the Server. Client DataSet: " + SubmitDS.GetXml());
#endif
// Submit changes to the PETRAServer
try
{
if (!FPetraUtilsObject.SubmitChangesContinue)
{
FResponseDS = null;
SubmissionResult = FPartnerEditUIConnector.SubmitChanges(ref SubmitDS, ref FResponseDS, out VerificationResult);
}
else
{
SubmissionResult = FPartnerEditUIConnector.SubmitChangesContinue(out SubmitDS, ref FResponseDS, out VerificationResult);
}
}
catch (ESecurityDBTableAccessDeniedException Exp)
{
FPetraUtilsObject.WriteToStatusBar(MCommonResourcestrings.StrSavingDataException);
this.Cursor = Cursors.Default;
TMessages.MsgSecurityException(Exp, this.GetType());
ReturnValue = false;
FPetraUtilsObject.OnDataSaved(this, new TDataSavedEventArgs(ReturnValue));
return ReturnValue;
}
catch (EDBConcurrencyException Exp)
{
FPetraUtilsObject.WriteToStatusBar(MCommonResourcestrings.StrSavingDataException);
this.Cursor = Cursors.Default;
TMessages.MsgDBConcurrencyException(Exp, this.GetType());