This commit is contained in:
2021-08-09 19:45:09 +00:00
parent 726152780e
commit d16468d44b
3 changed files with 28 additions and 2 deletions

View File

@@ -34,6 +34,8 @@
this.ckExportAssignedDocs = new System.Windows.Forms.CheckBox(); this.ckExportAssignedDocs = new System.Windows.Forms.CheckBox();
this.lblPreRelease = new System.Windows.Forms.Label(); this.lblPreRelease = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.edTags = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout(); this.SuspendLayout();
// //
// btnCancel // btnCancel
@@ -97,6 +99,23 @@
this.label2.Text = "Export will erase *all* data on AyaNova 8 Server"; this.label2.Text = "Export will erase *all* data on AyaNova 8 Server";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// edTags
//
this.edTags.Location = new System.Drawing.Point(26, 151);
this.edTags.Name = "edTags";
this.edTags.Size = new System.Drawing.Size(391, 20);
this.edTags.TabIndex = 40;
this.edTags.Text = "v7-import";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(26, 132);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(120, 13);
this.label1.TabIndex = 41;
this.label1.Text = "Tag all exported objects";
//
// Opt // Opt
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -104,6 +123,8 @@
this.AutoSize = true; this.AutoSize = true;
this.ClientSize = new System.Drawing.Size(614, 353); this.ClientSize = new System.Drawing.Size(614, 353);
this.ControlBox = false; this.ControlBox = false;
this.Controls.Add(this.label1);
this.Controls.Add(this.edTags);
this.Controls.Add(this.label2); this.Controls.Add(this.label2);
this.Controls.Add(this.lblPreRelease); this.Controls.Add(this.lblPreRelease);
this.Controls.Add(this.ckExportAssignedDocs); this.Controls.Add(this.ckExportAssignedDocs);
@@ -126,5 +147,7 @@
private System.Windows.Forms.CheckBox ckExportAssignedDocs; private System.Windows.Forms.CheckBox ckExportAssignedDocs;
private System.Windows.Forms.Label lblPreRelease; private System.Windows.Forms.Label lblPreRelease;
private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox edTags;
private System.Windows.Forms.Label label1;
} }
} }

View File

@@ -12,6 +12,8 @@ namespace AyaNova.PlugIn.V8
public partial class Opt : Form public partial class Opt : Form
{ {
public bool ExportAssignedDocs { get { return ckExportAssignedDocs.Checked; } } public bool ExportAssignedDocs { get { return ckExportAssignedDocs.Checked; } }
public string Tags { get { return edTags.Text; } }
public Opt() public Opt()
{ {
InitializeComponent(); InitializeComponent();

View File

@@ -163,6 +163,7 @@ namespace AyaNova.PlugIn.V8
return; return;
} }
ExportAssignedDocs = dOpt.ExportAssignedDocs; ExportAssignedDocs = dOpt.ExportAssignedDocs;
ImportTag = dOpt.Tags;
//here because we logged in fine and can proceed //here because we logged in fine and can proceed
//MessageBox.Show("Login successful! JWT is " + util.JWT); //MessageBox.Show("Login successful! JWT is " + util.JWT);
@@ -236,9 +237,9 @@ namespace AyaNova.PlugIn.V8
private Dictionary<Guid, string> TagMap = new Dictionary<Guid, string>(); private Dictionary<Guid, string> TagMap = new Dictionary<Guid, string>();
private Dictionary<string, long> LocaleMap = new Dictionary<string, long>(); private Dictionary<string, long> LocaleMap = new Dictionary<string, long>();
private string ImportTag = "v7-import"; private string ImportTag = string.Empty;
private static void AddImportTag(List<string> tags){ private void AddImportTag(List<string> tags){
if(!string.IsNullOrWhiteSpace(ImportTag)) if(!string.IsNullOrWhiteSpace(ImportTag))
tags.Add(ImportTag); tags.Add(ImportTag);
} }