コード例 #1
0
 public override void WritePropertiesData(DataWriter writer)
 {
     writer.WriteStartObject(Name);
     base.WritePropertiesData(writer);
     if (Status == Core.Process.ProcessStatus.Inactive)
     {
         writer.WriteFinishObject();
         return;
     }
     if (PageParameters != null)
     {
         if (PageParameters.GetType().IsSerializable || PageParameters.GetType().GetInterface("ISerializable") != null)
         {
             writer.WriteSerializableObjectValue("PageParameters", PageParameters, null);
         }
     }
     if (!HasMapping("ProcessKey"))
     {
         writer.WriteValue("ProcessKey", ProcessKey, null);
     }
     if (!HasMapping("UserContextKey"))
     {
         writer.WriteValue("UserContextKey", UserContextKey, null);
     }
     if (!HasMapping("UseCurrentActivePage"))
     {
         writer.WriteValue("UseCurrentActivePage", UseCurrentActivePage, false);
     }
     writer.WriteFinishObject();
 }
コード例 #2
0
 public override void WritePropertiesData(DataWriter writer)
 {
     writer.WriteStartObject(Name);
     base.WritePropertiesData(writer);
     if (Status == Core.Process.ProcessStatus.Inactive)
     {
         writer.WriteFinishObject();
         return;
     }
     if (Page != null)
     {
         if (Page.GetType().IsSerializable ||
             Page.GetType().GetInterface("ISerializable") != null)
         {
             writer.WriteSerializableObjectValue("Page", Page, null);
         }
     }
     if (!HasMapping("Icon"))
     {
         writer.WriteValue("Icon", Icon, null);
     }
     if (!HasMapping("Buttons"))
     {
         writer.WriteValue("Buttons", Buttons, null);
     }
     if (!HasMapping("WindowCaption"))
     {
         writer.WriteValue("WindowCaption", WindowCaption, null);
     }
     if (!HasMapping("MessageText"))
     {
         writer.WriteValue("MessageText", MessageText, null);
     }
     if (ResponseMessages != null)
     {
         if (ResponseMessages.GetType().IsSerializable ||
             ResponseMessages.GetType().GetInterface("ISerializable") != null)
         {
             writer.WriteSerializableObjectValue("ResponseMessages", ResponseMessages, null);
         }
     }
     if (!HasMapping("ProcessInstanceId"))
     {
         writer.WriteValue("ProcessInstanceId", ProcessInstanceId, null);
     }
     if (PageParameters != null)
     {
         if (PageParameters.GetType().IsSerializable ||
             PageParameters.GetType().GetInterface("ISerializable") != null)
         {
             writer.WriteSerializableObjectValue("PageParameters", PageParameters, null);
         }
     }
     writer.WriteFinishObject();
 }
コード例 #3
0
 public override void WritePropertiesData(DataWriter writer)
 {
     writer.WriteStartObject(Name);
     base.WritePropertiesData(writer);
     if (Status == Core.Process.ProcessStatus.Inactive)
     {
         writer.WriteFinishObject();
         return;
     }
     if (!HasMapping("PageUId"))
     {
         writer.WriteValue("PageUId", PageUId, Guid.Empty);
     }
     if (!HasMapping("PageUrl"))
     {
         writer.WriteValue("PageUrl", PageUrl, null);
     }
     if (!HasMapping("OpenerInstanceId"))
     {
         writer.WriteValue("OpenerInstanceId", OpenerInstanceId, null);
     }
     if (!HasMapping("CloseOpenerOnLoad"))
     {
         writer.WriteValue("CloseOpenerOnLoad", CloseOpenerOnLoad, false);
     }
     if (PageParameters != null)
     {
         if (PageParameters.GetType().IsSerializable || PageParameters.GetType().GetInterface("ISerializable") != null)
         {
             writer.WriteSerializableObjectValue("PageParameters", PageParameters, null);
         }
     }
     if (!HasMapping("Width"))
     {
         writer.WriteValue("Width", Width, 0);
     }
     if (!HasMapping("CloseMessage"))
     {
         writer.WriteValue("CloseMessage", CloseMessage, null);
     }
     if (!HasMapping("Height"))
     {
         writer.WriteValue("Height", Height, 0);
     }
     if (Centered != null)
     {
         if (Centered.GetType().IsSerializable || Centered.GetType().GetInterface("ISerializable") != null)
         {
             writer.WriteSerializableObjectValue("Centered", Centered, null);
         }
     }
     if (!HasMapping("UseOpenerRegisterScript"))
     {
         writer.WriteValue("UseOpenerRegisterScript", UseOpenerRegisterScript, false);
     }
     if (!HasMapping("UseCurrentActivePage"))
     {
         writer.WriteValue("UseCurrentActivePage", UseCurrentActivePage, false);
     }
     if (!HasMapping("IgnoreProfile"))
     {
         writer.WriteValue("IgnoreProfile", IgnoreProfile, false);
     }
     writer.WriteFinishObject();
 }