using System;
using System.Text;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using NEC.NECSoft.Jmss.JAPI.Interop;

namespace JapiTest
{
	/// <summary>
	/// JAPI .NET C# Tv̏tH[łB
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.TabControl tabControl1;
		private System.Windows.Forms.TabPage tabPageThrowJob;
		private System.Windows.Forms.Label lbPriority;
		private System.Windows.Forms.ComboBox cbPriority;
		private System.Windows.Forms.ComboBox cbStdout;
		private System.Windows.Forms.Label lbStdout;
		private System.Windows.Forms.Label lbQueue;
		private System.Windows.Forms.TextBox tbQueueName;
		private System.Windows.Forms.Label lbBizName;
		private System.Windows.Forms.TextBox tbBizName;
		private System.Windows.Forms.Label lbJob;
		private System.Windows.Forms.TextBox tbJobName;
		private System.Windows.Forms.OpenFileDialog openFileDialog1;
		private System.Windows.Forms.Button btnJobDialog;
		private System.Windows.Forms.Label lbParameter;
		private System.Windows.Forms.TextBox tbParameter;
		private System.Windows.Forms.Label lbExecDir;
		private System.Windows.Forms.TextBox tbExecDir;
		private System.Windows.Forms.Label lbTimeout;
		private System.Windows.Forms.TextBox tbTimeOut;
		private System.Windows.Forms.Button btnThrowSubmit;
		private System.Windows.Forms.TextBox tbStdoutFile;
		private System.Windows.Forms.Label lbStdoutFile;
		private System.Windows.Forms.Label lbJobNo;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox tbWaitJobTimeout;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.TextBox tbWaitJobJobNo;
		private System.Windows.Forms.CheckBox checkboxInfinite;
		private System.Windows.Forms.TabPage tabWaitJob;
		private System.Windows.Forms.TabPage tabGetJobStatus;
		private System.Windows.Forms.Label lbJobStsJobNo;
		private System.Windows.Forms.TextBox tbJobStsJobNo;
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.TabPage tabControlJob;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.ComboBox cbControlJobRequestCode;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.TextBox tbControlJobJobNo;
		private System.Windows.Forms.Button btnSubmitControlJob;
		private System.Windows.Forms.TabPage tabChildJobList;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.TextBox tbChildListJobNo;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.CheckBox cbChildListStatusEnd;
		private System.Windows.Forms.CheckBox cbChildListStatusRun;
		private System.Windows.Forms.CheckBox cbChildListStatusWait;
		private System.Windows.Forms.Button button3;
		private System.Windows.Forms.TabPage tabCurrentJobNo;
		private System.Windows.Forms.TabPage tabSendEvent;
		private System.Windows.Forms.TabPage tabReceiveEvent;
		private System.Windows.Forms.TabPage tabReportEvent;
		private System.Windows.Forms.Button button4;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.TextBox tbSendEventServerName;
		private System.Windows.Forms.TextBox tbSendEventQueueName;
		private System.Windows.Forms.TextBox tbSendEventEventID;
		private System.Windows.Forms.TextBox tbSendEventMessage;
		private System.Windows.Forms.Button btnSubmitSendEvent;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.TextBox tbReceiveEventEvendID;
		private System.Windows.Forms.Label label12;
		private System.Windows.Forms.TextBox tbReceiveEventTimeout;
		private System.Windows.Forms.CheckBox cbReceiveEventInfinite;
		private System.Windows.Forms.Button btnSubmitReceiveEvent;
		private System.Windows.Forms.Label label15;
		private System.Windows.Forms.Label label16;
		private System.Windows.Forms.Label label17;
		private System.Windows.Forms.TextBox tbReportEventMessage;
		private System.Windows.Forms.ComboBox cbReportEventMode;
		private System.Windows.Forms.ComboBox cbReportEventType;
		private System.Windows.Forms.Button btnSubmitReportEvent;
		private System.Windows.Forms.CheckBox cbChildListOnlyJobNumber;
		private System.Windows.Forms.TextBox tbChildListMaxNumber;
		private System.Windows.Forms.Button btnQueBouwse;
		private System.Windows.Forms.Label label13;
		private System.Windows.Forms.Button btnDel;
		private System.Windows.Forms.Button btnAdd;
		private System.Windows.Forms.Label label14;
		private System.Windows.Forms.Label label18;
		private System.Windows.Forms.ListBox lBParam;
		private System.Windows.Forms.TextBox tBName;
		private System.Windows.Forms.TextBox tBValue;
		private System.Windows.Forms.ToolTip toolTip1;
		private System.Windows.Forms.TabPage tabGetJobQ;
		private System.Windows.Forms.Label label19;
		private System.Windows.Forms.Label label20;
		private System.Windows.Forms.Label label21;
		private System.Windows.Forms.Label label22;
		private System.Windows.Forms.Button button6;
		private System.Windows.Forms.TextBox tBCurRunningJob;
		private System.Windows.Forms.TextBox tBCurrentEntryJob;
		private System.Windows.Forms.GroupBox gbResult;
		private System.Windows.Forms.Label label23;
		private System.Windows.Forms.TextBox tBEntryStatus;
		private System.Windows.Forms.Button btnGetJobQ;
		private System.Windows.Forms.TextBox tBGetJobQName;
		private System.Windows.Forms.TextBox tBQueStatus;
		private System.Windows.Forms.ComboBox cbExecType;
		private System.Windows.Forms.Label label24;
		private System.ComponentModel.IContainer components;

		public Form1()
		{
			//
			// Windows tH[ fUCi T|[gɕKvłB
			//
			InitializeComponent();

			//
			// TODO: InitializeComponent ĂяǒɁARXgN^ R[hǉĂB
			//
		}

		/// <summary>
		/// gpĂ郊\[XɌ㏈s܂B
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// fUCi T|[gɕKvȃ\bhłB̃\bh̓e
		/// R[h GfB^ŕύXȂłB
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.tabControl1 = new System.Windows.Forms.TabControl();
			this.tabPageThrowJob = new System.Windows.Forms.TabPage();
			this.cbExecType = new System.Windows.Forms.ComboBox();
			this.label24 = new System.Windows.Forms.Label();
			this.btnQueBouwse = new System.Windows.Forms.Button();
			this.lbStdoutFile = new System.Windows.Forms.Label();
			this.tbStdoutFile = new System.Windows.Forms.TextBox();
			this.btnThrowSubmit = new System.Windows.Forms.Button();
			this.tbTimeOut = new System.Windows.Forms.TextBox();
			this.lbTimeout = new System.Windows.Forms.Label();
			this.tbExecDir = new System.Windows.Forms.TextBox();
			this.lbExecDir = new System.Windows.Forms.Label();
			this.tbParameter = new System.Windows.Forms.TextBox();
			this.lbParameter = new System.Windows.Forms.Label();
			this.btnJobDialog = new System.Windows.Forms.Button();
			this.tbJobName = new System.Windows.Forms.TextBox();
			this.lbJob = new System.Windows.Forms.Label();
			this.tbBizName = new System.Windows.Forms.TextBox();
			this.lbBizName = new System.Windows.Forms.Label();
			this.tbQueueName = new System.Windows.Forms.TextBox();
			this.lbQueue = new System.Windows.Forms.Label();
			this.lbStdout = new System.Windows.Forms.Label();
			this.cbStdout = new System.Windows.Forms.ComboBox();
			this.cbPriority = new System.Windows.Forms.ComboBox();
			this.lbPriority = new System.Windows.Forms.Label();
			this.tabWaitJob = new System.Windows.Forms.TabPage();
			this.checkboxInfinite = new System.Windows.Forms.CheckBox();
			this.button1 = new System.Windows.Forms.Button();
			this.tbWaitJobTimeout = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.tbWaitJobJobNo = new System.Windows.Forms.TextBox();
			this.lbJobNo = new System.Windows.Forms.Label();
			this.tabGetJobStatus = new System.Windows.Forms.TabPage();
			this.button2 = new System.Windows.Forms.Button();
			this.tbJobStsJobNo = new System.Windows.Forms.TextBox();
			this.lbJobStsJobNo = new System.Windows.Forms.Label();
			this.tabControlJob = new System.Windows.Forms.TabPage();
			this.btnSubmitControlJob = new System.Windows.Forms.Button();
			this.tbControlJobJobNo = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.cbControlJobRequestCode = new System.Windows.Forms.ComboBox();
			this.label2 = new System.Windows.Forms.Label();
			this.tabChildJobList = new System.Windows.Forms.TabPage();
			this.cbChildListOnlyJobNumber = new System.Windows.Forms.CheckBox();
			this.button3 = new System.Windows.Forms.Button();
			this.cbChildListStatusEnd = new System.Windows.Forms.CheckBox();
			this.tbChildListMaxNumber = new System.Windows.Forms.TextBox();
			this.label6 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.tbChildListJobNo = new System.Windows.Forms.TextBox();
			this.label4 = new System.Windows.Forms.Label();
			this.cbChildListStatusRun = new System.Windows.Forms.CheckBox();
			this.cbChildListStatusWait = new System.Windows.Forms.CheckBox();
			this.tabReceiveEvent = new System.Windows.Forms.TabPage();
			this.btnSubmitReceiveEvent = new System.Windows.Forms.Button();
			this.cbReceiveEventInfinite = new System.Windows.Forms.CheckBox();
			this.tbReceiveEventEvendID = new System.Windows.Forms.TextBox();
			this.label11 = new System.Windows.Forms.Label();
			this.label12 = new System.Windows.Forms.Label();
			this.tbReceiveEventTimeout = new System.Windows.Forms.TextBox();
			this.tabSendEvent = new System.Windows.Forms.TabPage();
			this.label18 = new System.Windows.Forms.Label();
			this.label14 = new System.Windows.Forms.Label();
			this.tBValue = new System.Windows.Forms.TextBox();
			this.tBName = new System.Windows.Forms.TextBox();
			this.btnAdd = new System.Windows.Forms.Button();
			this.btnDel = new System.Windows.Forms.Button();
			this.lBParam = new System.Windows.Forms.ListBox();
			this.label13 = new System.Windows.Forms.Label();
			this.btnSubmitSendEvent = new System.Windows.Forms.Button();
			this.tbSendEventServerName = new System.Windows.Forms.TextBox();
			this.label9 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.label10 = new System.Windows.Forms.Label();
			this.tbSendEventQueueName = new System.Windows.Forms.TextBox();
			this.tbSendEventEventID = new System.Windows.Forms.TextBox();
			this.tbSendEventMessage = new System.Windows.Forms.TextBox();
			this.tabCurrentJobNo = new System.Windows.Forms.TabPage();
			this.button4 = new System.Windows.Forms.Button();
			this.tabGetJobQ = new System.Windows.Forms.TabPage();
			this.button6 = new System.Windows.Forms.Button();
			this.btnGetJobQ = new System.Windows.Forms.Button();
			this.tBCurrentEntryJob = new System.Windows.Forms.TextBox();
			this.tBCurRunningJob = new System.Windows.Forms.TextBox();
			this.tBQueStatus = new System.Windows.Forms.TextBox();
			this.label22 = new System.Windows.Forms.Label();
			this.label21 = new System.Windows.Forms.Label();
			this.label20 = new System.Windows.Forms.Label();
			this.tBGetJobQName = new System.Windows.Forms.TextBox();
			this.label19 = new System.Windows.Forms.Label();
			this.gbResult = new System.Windows.Forms.GroupBox();
			this.label23 = new System.Windows.Forms.Label();
			this.tBEntryStatus = new System.Windows.Forms.TextBox();
			this.tabReportEvent = new System.Windows.Forms.TabPage();
			this.btnSubmitReportEvent = new System.Windows.Forms.Button();
			this.cbReportEventMode = new System.Windows.Forms.ComboBox();
			this.label15 = new System.Windows.Forms.Label();
			this.label16 = new System.Windows.Forms.Label();
			this.label17 = new System.Windows.Forms.Label();
			this.tbReportEventMessage = new System.Windows.Forms.TextBox();
			this.cbReportEventType = new System.Windows.Forms.ComboBox();
			this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
			this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
			this.tabControl1.SuspendLayout();
			this.tabPageThrowJob.SuspendLayout();
			this.tabWaitJob.SuspendLayout();
			this.tabGetJobStatus.SuspendLayout();
			this.tabControlJob.SuspendLayout();
			this.tabChildJobList.SuspendLayout();
			this.tabReceiveEvent.SuspendLayout();
			this.tabSendEvent.SuspendLayout();
			this.tabCurrentJobNo.SuspendLayout();
			this.tabGetJobQ.SuspendLayout();
			this.gbResult.SuspendLayout();
			this.tabReportEvent.SuspendLayout();
			this.SuspendLayout();
			// 
			// tabControl1
			// 
			this.tabControl1.Controls.Add(this.tabPageThrowJob);
			this.tabControl1.Controls.Add(this.tabWaitJob);
			this.tabControl1.Controls.Add(this.tabGetJobStatus);
			this.tabControl1.Controls.Add(this.tabControlJob);
			this.tabControl1.Controls.Add(this.tabChildJobList);
			this.tabControl1.Controls.Add(this.tabReceiveEvent);
			this.tabControl1.Controls.Add(this.tabSendEvent);
			this.tabControl1.Controls.Add(this.tabCurrentJobNo);
			this.tabControl1.Controls.Add(this.tabGetJobQ);
			this.tabControl1.Controls.Add(this.tabReportEvent);
			this.tabControl1.Location = new System.Drawing.Point(16, 16);
			this.tabControl1.Multiline = true;
			this.tabControl1.Name = "tabControl1";
			this.tabControl1.SelectedIndex = 0;
			this.tabControl1.Size = new System.Drawing.Size(432, 392);
			this.tabControl1.TabIndex = 0;
			// 
			// tabPageThrowJob
			// 
			this.tabPageThrowJob.Controls.Add(this.cbExecType);
			this.tabPageThrowJob.Controls.Add(this.label24);
			this.tabPageThrowJob.Controls.Add(this.btnQueBouwse);
			this.tabPageThrowJob.Controls.Add(this.lbStdoutFile);
			this.tabPageThrowJob.Controls.Add(this.tbStdoutFile);
			this.tabPageThrowJob.Controls.Add(this.btnThrowSubmit);
			this.tabPageThrowJob.Controls.Add(this.tbTimeOut);
			this.tabPageThrowJob.Controls.Add(this.lbTimeout);
			this.tabPageThrowJob.Controls.Add(this.tbExecDir);
			this.tabPageThrowJob.Controls.Add(this.lbExecDir);
			this.tabPageThrowJob.Controls.Add(this.tbParameter);
			this.tabPageThrowJob.Controls.Add(this.lbParameter);
			this.tabPageThrowJob.Controls.Add(this.btnJobDialog);
			this.tabPageThrowJob.Controls.Add(this.tbJobName);
			this.tabPageThrowJob.Controls.Add(this.lbJob);
			this.tabPageThrowJob.Controls.Add(this.tbBizName);
			this.tabPageThrowJob.Controls.Add(this.lbBizName);
			this.tabPageThrowJob.Controls.Add(this.tbQueueName);
			this.tabPageThrowJob.Controls.Add(this.lbQueue);
			this.tabPageThrowJob.Controls.Add(this.lbStdout);
			this.tabPageThrowJob.Controls.Add(this.cbStdout);
			this.tabPageThrowJob.Controls.Add(this.cbPriority);
			this.tabPageThrowJob.Controls.Add(this.lbPriority);
			this.tabPageThrowJob.Location = new System.Drawing.Point(4, 38);
			this.tabPageThrowJob.Name = "tabPageThrowJob";
			this.tabPageThrowJob.Size = new System.Drawing.Size(424, 350);
			this.tabPageThrowJob.TabIndex = 0;
			this.tabPageThrowJob.Text = "Wu";
			this.tabPageThrowJob.ToolTipText = "JmssThrowJob APĨTvłB";
			// 
			// cbExecType
			// 
			this.cbExecType.Items.AddRange(new object[] {
															"wȂ",
															"޽ޱĂŋN",
															"۸޵հޱĂŋN"});
			this.cbExecType.Location = new System.Drawing.Point(120, 288);
			this.cbExecType.Name = "cbExecType";
			this.cbExecType.Size = new System.Drawing.Size(192, 20);
			this.cbExecType.TabIndex = 11;
			this.cbExecType.Text = "I";
			this.toolTip1.SetToolTip(this.cbExecType, "WűNI܂Bw莞͎wȂɂȂ܂B");
			// 
			// label24
			// 
			this.label24.Location = new System.Drawing.Point(16, 288);
			this.label24.Name = "label24";
			this.label24.Size = new System.Drawing.Size(88, 16);
			this.label24.TabIndex = 13;
			this.label24.Text = "ޮދN";
			// 
			// btnQueBouwse
			// 
			this.btnQueBouwse.Location = new System.Drawing.Point(272, 136);
			this.btnQueBouwse.Name = "btnQueBouwse";
			this.btnQueBouwse.Size = new System.Drawing.Size(56, 23);
			this.btnQueBouwse.TabIndex = 6;
			this.btnQueBouwse.Text = "Q..";
			this.toolTip1.SetToolTip(this.btnQueBouwse, "WuL[Qƃ_CAO\܂B");
			this.btnQueBouwse.Click += new System.EventHandler(this.button5_Click);
			// 
			// lbStdoutFile
			// 
			this.lbStdoutFile.Location = new System.Drawing.Point(16, 233);
			this.lbStdoutFile.Name = "lbStdoutFile";
			this.lbStdoutFile.Size = new System.Drawing.Size(104, 16);
			this.lbStdoutFile.TabIndex = 0;
			this.lbStdoutFile.Text = "Wo̓t@C";
			// 
			// tbStdoutFile
			// 
			this.tbStdoutFile.Enabled = false;
			this.tbStdoutFile.Location = new System.Drawing.Point(120, 228);
			this.tbStdoutFile.MaxLength = 255;
			this.tbStdoutFile.Name = "tbStdoutFile";
			this.tbStdoutFile.Size = new System.Drawing.Size(192, 19);
			this.tbStdoutFile.TabIndex = 9;
			this.tbStdoutFile.Text = "";
			this.toolTip1.SetToolTip(this.tbStdoutFile, "Wo͓eDȃt@CŕۑꍇɎw肵܂B");
			// 
			// btnThrowSubmit
			// 
			this.btnThrowSubmit.Location = new System.Drawing.Point(328, 320);
			this.btnThrowSubmit.Name = "btnThrowSubmit";
			this.btnThrowSubmit.TabIndex = 12;
			this.btnThrowSubmit.Text = "";
			this.toolTip1.SetToolTip(this.btnThrowSubmit, "Wu𓊓܂B");
			this.btnThrowSubmit.Click += new System.EventHandler(this.btnThrowSubmit_Click);
			// 
			// tbTimeOut
			// 
			this.tbTimeOut.Location = new System.Drawing.Point(120, 258);
			this.tbTimeOut.Name = "tbTimeOut";
			this.tbTimeOut.TabIndex = 10;
			this.tbTimeOut.Text = "";
			this.toolTip1.SetToolTip(this.tbTimeOut, "soߎԃ^CAEg𕪒PʂŎw肵܂B̎Ԍo߂ƃWuI܂Bw莞̓WuI܂ŉ܂B");
			// 
			// lbTimeout
			// 
			this.lbTimeout.Location = new System.Drawing.Point(16, 264);
			this.lbTimeout.Name = "lbTimeout";
			this.lbTimeout.Size = new System.Drawing.Size(80, 16);
			this.lbTimeout.TabIndex = 0;
			this.lbTimeout.Text = "^CAEg()";
			// 
			// tbExecDir
			// 
			this.tbExecDir.Location = new System.Drawing.Point(120, 106);
			this.tbExecDir.MaxLength = 255;
			this.tbExecDir.Name = "tbExecDir";
			this.tbExecDir.Size = new System.Drawing.Size(160, 19);
			this.tbExecDir.TabIndex = 4;
			this.tbExecDir.Text = "";
			this.toolTip1.SetToolTip(this.tbExecDir, "Wu̎sfBNg256ȓŎw肵܂B");
			// 
			// lbExecDir
			// 
			this.lbExecDir.Location = new System.Drawing.Point(16, 109);
			this.lbExecDir.Name = "lbExecDir";
			this.lbExecDir.Size = new System.Drawing.Size(80, 16);
			this.lbExecDir.TabIndex = 0;
			this.lbExecDir.Text = "sfBNg";
			// 
			// tbParameter
			// 
			this.tbParameter.Location = new System.Drawing.Point(120, 76);
			this.tbParameter.MaxLength = 255;
			this.tbParameter.Name = "tbParameter";
			this.tbParameter.Size = new System.Drawing.Size(216, 19);
			this.tbParameter.TabIndex = 3;
			this.tbParameter.Text = "";
			this.toolTip1.SetToolTip(this.tbParameter, "Wũp[^256ȓŎw肵܂B");
			// 
			// lbParameter
			// 
			this.lbParameter.Location = new System.Drawing.Point(16, 78);
			this.lbParameter.Name = "lbParameter";
			this.lbParameter.Size = new System.Drawing.Size(56, 16);
			this.lbParameter.TabIndex = 0;
			this.lbParameter.Text = "p[^";
			// 
			// btnJobDialog
			// 
			this.btnJobDialog.Location = new System.Drawing.Point(344, 46);
			this.btnJobDialog.Name = "btnJobDialog";
			this.btnJobDialog.Size = new System.Drawing.Size(56, 23);
			this.btnJobDialog.TabIndex = 2;
			this.btnJobDialog.Text = "Q...";
			this.toolTip1.SetToolTip(this.btnJobDialog, "t@CQƃ_CAO\܂B");
			this.btnJobDialog.Click += new System.EventHandler(this.btnJobDialog_Click);
			// 
			// tbJobName
			// 
			this.tbJobName.Location = new System.Drawing.Point(120, 46);
			this.tbJobName.MaxLength = 32;
			this.tbJobName.Name = "tbJobName";
			this.tbJobName.Size = new System.Drawing.Size(216, 19);
			this.tbJobName.TabIndex = 1;
			this.tbJobName.Text = "";
			this.toolTip1.SetToolTip(this.tbJobName, "Wũt@C256ȓŎw肵܂B");
			this.tbJobName.Leave += new System.EventHandler(this.ChangedJobName);
			// 
			// lbJob
			// 
			this.lbJob.Location = new System.Drawing.Point(16, 47);
			this.lbJob.Name = "lbJob";
			this.lbJob.Size = new System.Drawing.Size(48, 16);
			this.lbJob.TabIndex = 0;
			this.lbJob.Text = "Wu";
			// 
			// tbBizName
			// 
			this.tbBizName.Location = new System.Drawing.Point(120, 16);
			this.tbBizName.MaxLength = 32;
			this.tbBizName.Name = "tbBizName";
			this.tbBizName.Size = new System.Drawing.Size(152, 19);
			this.tbBizName.TabIndex = 0;
			this.tbBizName.Text = "";
			this.toolTip1.SetToolTip(this.tbBizName, "Ɩ32ȓŎw肵܂B");
			// 
			// lbBizName
			// 
			this.lbBizName.Location = new System.Drawing.Point(16, 16);
			this.lbBizName.Name = "lbBizName";
			this.lbBizName.Size = new System.Drawing.Size(64, 16);
			this.lbBizName.TabIndex = 0;
			this.lbBizName.Text = " Ɩ";
			// 
			// tbQueueName
			// 
			this.tbQueueName.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
			this.tbQueueName.Location = new System.Drawing.Point(120, 136);
			this.tbQueueName.MaxLength = 15;
			this.tbQueueName.Name = "tbQueueName";
			this.tbQueueName.Size = new System.Drawing.Size(144, 19);
			this.tbQueueName.TabIndex = 5;
			this.tbQueueName.Text = "";
			this.toolTip1.SetToolTip(this.tbQueueName, "WuL[15ȓŎw肵܂B");
			// 
			// lbQueue
			// 
			this.lbQueue.Location = new System.Drawing.Point(16, 140);
			this.lbQueue.Name = "lbQueue";
			this.lbQueue.Size = new System.Drawing.Size(72, 16);
			this.lbQueue.TabIndex = 0;
			this.lbQueue.Text = "WuL[";
			// 
			// lbStdout
			// 
			this.lbStdout.Location = new System.Drawing.Point(16, 202);
			this.lbStdout.Name = "lbStdout";
			this.lbStdout.Size = new System.Drawing.Size(56, 16);
			this.lbStdout.TabIndex = 0;
			this.lbStdout.Text = "Wo";
			// 
			// cbStdout
			// 
			this.cbStdout.Items.AddRange(new object[] {
														  "Ȃ",
														  "SYSTEMi㏑)",
														  "SYSTEM(ǉ)",
														  "USERi㏑)",
														  "USERiǉj"});
			this.cbStdout.Location = new System.Drawing.Point(120, 197);
			this.cbStdout.Name = "cbStdout";
			this.cbStdout.Size = new System.Drawing.Size(121, 20);
			this.cbStdout.TabIndex = 8;
			this.cbStdout.Text = "I";
			this.toolTip1.SetToolTip(this.cbStdout, "Wo͊ĎLw肵܂Bw莞͊Ď܂B");
			this.cbStdout.SelectedIndexChanged += new System.EventHandler(this.StdoutChanged);
			// 
			// cbPriority
			// 
			this.cbPriority.Items.AddRange(new object[] {
															"REAL",
															"HIGH",
															"NORMAL",
															"IDLE"});
			this.cbPriority.Location = new System.Drawing.Point(120, 166);
			this.cbPriority.Name = "cbPriority";
			this.cbPriority.Size = new System.Drawing.Size(80, 20);
			this.cbPriority.TabIndex = 7;
			this.cbPriority.Text = "I";
			this.toolTip1.SetToolTip(this.cbPriority, "WũvZXD揇ʂI܂Bw莞NORMALɂȂ܂B");
			// 
			// lbPriority
			// 
			this.lbPriority.Location = new System.Drawing.Point(16, 171);
			this.lbPriority.Name = "lbPriority";
			this.lbPriority.Size = new System.Drawing.Size(64, 16);
			this.lbPriority.TabIndex = 0;
			this.lbPriority.Text = "D揇";
			// 
			// tabWaitJob
			// 
			this.tabWaitJob.Controls.Add(this.checkboxInfinite);
			this.tabWaitJob.Controls.Add(this.button1);
			this.tabWaitJob.Controls.Add(this.tbWaitJobTimeout);
			this.tabWaitJob.Controls.Add(this.label1);
			this.tabWaitJob.Controls.Add(this.tbWaitJobJobNo);
			this.tabWaitJob.Controls.Add(this.lbJobNo);
			this.tabWaitJob.Location = new System.Drawing.Point(4, 38);
			this.tabWaitJob.Name = "tabWaitJob";
			this.tabWaitJob.Size = new System.Drawing.Size(424, 350);
			this.tabWaitJob.TabIndex = 1;
			this.tabWaitJob.Text = "WuI҂";
			this.tabWaitJob.ToolTipText = "JmssWaitjobExit̃TvłB";
			// 
			// checkboxInfinite
			// 
			this.checkboxInfinite.Location = new System.Drawing.Point(256, 53);
			this.checkboxInfinite.Name = "checkboxInfinite";
			this.checkboxInfinite.Size = new System.Drawing.Size(56, 24);
			this.checkboxInfinite.TabIndex = 4;
			this.checkboxInfinite.Text = "";
			this.toolTip1.SetToolTip(this.checkboxInfinite, "WuI܂ő҂킹ɂ͂`FbN܂B");
			this.checkboxInfinite.CheckedChanged += new System.EventHandler(this.CheckTimeoutChanged);
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(48, 104);
			this.button1.Name = "button1";
			this.button1.TabIndex = 5;
			this.button1.Text = "Jn";
			this.toolTip1.SetToolTip(this.button1, "Wu҂Jn܂B");
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// tbWaitJobTimeout
			// 
			this.tbWaitJobTimeout.Location = new System.Drawing.Point(136, 56);
			this.tbWaitJobTimeout.Name = "tbWaitJobTimeout";
			this.tbWaitJobTimeout.TabIndex = 3;
			this.tbWaitJobTimeout.Text = "0";
			this.toolTip1.SetToolTip(this.tbWaitJobTimeout, "҂Ԃ~bPʂŎw肵܂B");
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(24, 57);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(96, 16);
			this.label1.TabIndex = 1;
			this.label1.Text = "^CAEg(msec)";
			// 
			// tbWaitJobJobNo
			// 
			this.tbWaitJobJobNo.Location = new System.Drawing.Point(136, 23);
			this.tbWaitJobJobNo.Name = "tbWaitJobJobNo";
			this.tbWaitJobJobNo.TabIndex = 2;
			this.tbWaitJobJobNo.Text = "";
			this.toolTip1.SetToolTip(this.tbWaitJobJobNo, "Wuԍ10iŎw肵܂B");
			// 
			// lbJobNo
			// 
			this.lbJobNo.Location = new System.Drawing.Point(24, 24);
			this.lbJobNo.Name = "lbJobNo";
			this.lbJobNo.Size = new System.Drawing.Size(64, 16);
			this.lbJobNo.TabIndex = 0;
			this.lbJobNo.Text = "Wuԍ";
			// 
			// tabGetJobStatus
			// 
			this.tabGetJobStatus.AutoScroll = true;
			this.tabGetJobStatus.Controls.Add(this.button2);
			this.tabGetJobStatus.Controls.Add(this.tbJobStsJobNo);
			this.tabGetJobStatus.Controls.Add(this.lbJobStsJobNo);
			this.tabGetJobStatus.Location = new System.Drawing.Point(4, 38);
			this.tabGetJobStatus.Name = "tabGetJobStatus";
			this.tabGetJobStatus.Size = new System.Drawing.Size(424, 350);
			this.tabGetJobStatus.TabIndex = 2;
			this.tabGetJobStatus.Text = "Wu擾";
			this.tabGetJobStatus.ToolTipText = "JmssGetJobStatus APĨTvłB";
			// 
			// button2
			// 
			this.button2.Location = new System.Drawing.Point(216, 13);
			this.button2.Name = "button2";
			this.button2.TabIndex = 2;
			this.button2.Text = "擾";
			this.toolTip1.SetToolTip(this.button2, "Wȕ擾܂B");
			this.button2.Click += new System.EventHandler(this.button2_Click);
			// 
			// tbJobStsJobNo
			// 
			this.tbJobStsJobNo.Location = new System.Drawing.Point(96, 15);
			this.tbJobStsJobNo.Name = "tbJobStsJobNo";
			this.tbJobStsJobNo.TabIndex = 1;
			this.tbJobStsJobNo.Text = "";
			this.toolTip1.SetToolTip(this.tbJobStsJobNo, "Wuԍ10iŎw肵܂B");
			// 
			// lbJobStsJobNo
			// 
			this.lbJobStsJobNo.Location = new System.Drawing.Point(16, 16);
			this.lbJobStsJobNo.Name = "lbJobStsJobNo";
			this.lbJobStsJobNo.Size = new System.Drawing.Size(72, 16);
			this.lbJobStsJobNo.TabIndex = 0;
			this.lbJobStsJobNo.Text = "Wuԍ";
			// 
			// tabControlJob
			// 
			this.tabControlJob.Controls.Add(this.btnSubmitControlJob);
			this.tabControlJob.Controls.Add(this.tbControlJobJobNo);
			this.tabControlJob.Controls.Add(this.label3);
			this.tabControlJob.Controls.Add(this.cbControlJobRequestCode);
			this.tabControlJob.Controls.Add(this.label2);
			this.tabControlJob.Location = new System.Drawing.Point(4, 38);
			this.tabControlJob.Name = "tabControlJob";
			this.tabControlJob.Size = new System.Drawing.Size(424, 350);
			this.tabControlJob.TabIndex = 3;
			this.tabControlJob.Text = "Wu";
			this.tabControlJob.ToolTipText = "JmssControlJob APĨTvłB";
			// 
			// btnSubmitControlJob
			// 
			this.btnSubmitControlJob.Location = new System.Drawing.Point(32, 80);
			this.btnSubmitControlJob.Name = "btnSubmitControlJob";
			this.btnSubmitControlJob.TabIndex = 3;
			this.btnSubmitControlJob.Text = "s";
			this.toolTip1.SetToolTip(this.btnSubmitControlJob, "Wu𐧌䂵܂B");
			this.btnSubmitControlJob.Click += new System.EventHandler(this.btnSubmitControlJob_Click);
			// 
			// tbControlJobJobNo
			// 
			this.tbControlJobJobNo.Location = new System.Drawing.Point(96, 15);
			this.tbControlJobJobNo.Name = "tbControlJobJobNo";
			this.tbControlJobJobNo.TabIndex = 1;
			this.tbControlJobJobNo.Text = "";
			this.toolTip1.SetToolTip(this.tbControlJobJobNo, "Wuԍ10iŎw肵܂B");
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(32, 16);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(56, 16);
			this.label3.TabIndex = 2;
			this.label3.Text = "Wuԍ";
			// 
			// cbControlJobRequestCode
			// 
			this.cbControlJobRequestCode.Items.AddRange(new object[] {
																		 "I",
																		 "ꎞ~",
																		 "ĊJ",
																		 "ۗ",
																		 "ۗ",
																		 "o^폜",
																		 "~",
																		 "p"});
			this.cbControlJobRequestCode.Location = new System.Drawing.Point(96, 48);
			this.cbControlJobRequestCode.Name = "cbControlJobRequestCode";
			this.cbControlJobRequestCode.Size = new System.Drawing.Size(121, 20);
			this.cbControlJobRequestCode.TabIndex = 2;
			this.cbControlJobRequestCode.Text = "I";
			this.toolTip1.SetToolTip(this.cbControlJobRequestCode, "vʂI܂B");
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(32, 50);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(56, 16);
			this.label2.TabIndex = 0;
			this.label2.Text = "v";
			// 
			// tabChildJobList
			// 
			this.tabChildJobList.Controls.Add(this.cbChildListOnlyJobNumber);
			this.tabChildJobList.Controls.Add(this.button3);
			this.tabChildJobList.Controls.Add(this.cbChildListStatusEnd);
			this.tabChildJobList.Controls.Add(this.tbChildListMaxNumber);
			this.tabChildJobList.Controls.Add(this.label6);
			this.tabChildJobList.Controls.Add(this.label5);
			this.tabChildJobList.Controls.Add(this.tbChildListJobNo);
			this.tabChildJobList.Controls.Add(this.label4);
			this.tabChildJobList.Controls.Add(this.cbChildListStatusRun);
			this.tabChildJobList.Controls.Add(this.cbChildListStatusWait);
			this.tabChildJobList.Location = new System.Drawing.Point(4, 38);
			this.tabChildJobList.Name = "tabChildJobList";
			this.tabChildJobList.Size = new System.Drawing.Size(424, 350);
			this.tabChildJobList.TabIndex = 4;
			this.tabChildJobList.Text = "hWuꗗ擾";
			this.tabChildJobList.ToolTipText = "JmsJobList APĨTvłB";
			// 
			// cbChildListOnlyJobNumber
			// 
			this.cbChildListOnlyJobNumber.Location = new System.Drawing.Point(240, 95);
			this.cbChildListOnlyJobNumber.Name = "cbChildListOnlyJobNumber";
			this.cbChildListOnlyJobNumber.Size = new System.Drawing.Size(112, 24);
			this.cbChildListOnlyJobNumber.TabIndex = 8;
			this.cbChildListOnlyJobNumber.Text = "Wu擾";
			this.toolTip1.SetToolTip(this.cbChildListOnlyJobNumber, "hWu̐擾ꍇ̓`FbNĂB");
			this.cbChildListOnlyJobNumber.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
			// 
			// button3
			// 
			this.button3.Location = new System.Drawing.Point(40, 136);
			this.button3.Name = "button3";
			this.button3.TabIndex = 9;
			this.button3.Text = "擾";
			this.toolTip1.SetToolTip(this.button3, "hWuꗗ擾܂B");
			this.button3.Click += new System.EventHandler(this.btnGetChildJobList_Click);
			// 
			// cbChildListStatusEnd
			// 
			this.cbChildListStatusEnd.Checked = true;
			this.cbChildListStatusEnd.CheckState = System.Windows.Forms.CheckState.Checked;
			this.cbChildListStatusEnd.Location = new System.Drawing.Point(112, 58);
			this.cbChildListStatusEnd.Name = "cbChildListStatusEnd";
			this.cbChildListStatusEnd.Size = new System.Drawing.Size(48, 24);
			this.cbChildListStatusEnd.TabIndex = 4;
			this.cbChildListStatusEnd.Text = "I";
			this.toolTip1.SetToolTip(this.cbChildListStatusEnd, "hWûAuIvƂȂĂ̂擾܂B");
			// 
			// tbChildListMaxNumber
			// 
			this.tbChildListMaxNumber.Location = new System.Drawing.Point(112, 98);
			this.tbChildListMaxNumber.Name = "tbChildListMaxNumber";
			this.tbChildListMaxNumber.TabIndex = 7;
			this.tbChildListMaxNumber.Text = "5";
			this.toolTip1.SetToolTip(this.tbChildListMaxNumber, "擾hWuw肵܂B");
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(40, 99);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(72, 16);
			this.label6.TabIndex = 2;
			this.label6.Text = "擾ő吔";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(40, 62);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(56, 16);
			this.label5.TabIndex = 1;
			this.label5.Text = "Wu";
			// 
			// tbChildListJobNo
			// 
			this.tbChildListJobNo.Location = new System.Drawing.Point(112, 24);
			this.tbChildListJobNo.Name = "tbChildListJobNo";
			this.tbChildListJobNo.TabIndex = 3;
			this.tbChildListJobNo.Text = "";
			this.toolTip1.SetToolTip(this.tbChildListJobNo, "Wuԍ10iŎw肵܂B");
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(40, 25);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(56, 16);
			this.label4.TabIndex = 0;
			this.label4.Text = "Wuԍ";
			// 
			// cbChildListStatusRun
			// 
			this.cbChildListStatusRun.Checked = true;
			this.cbChildListStatusRun.CheckState = System.Windows.Forms.CheckState.Checked;
			this.cbChildListStatusRun.Location = new System.Drawing.Point(168, 58);
			this.cbChildListStatusRun.Name = "cbChildListStatusRun";
			this.cbChildListStatusRun.Size = new System.Drawing.Size(64, 24);
			this.cbChildListStatusRun.TabIndex = 5;
			this.cbChildListStatusRun.Text = "s";
			this.toolTip1.SetToolTip(this.cbChildListStatusRun, "hWûAusvƂȂĂ̂擾܂B");
			// 
			// cbChildListStatusWait
			// 
			this.cbChildListStatusWait.Checked = true;
			this.cbChildListStatusWait.CheckState = System.Windows.Forms.CheckState.Checked;
			this.cbChildListStatusWait.Location = new System.Drawing.Point(240, 58);
			this.cbChildListStatusWait.Name = "cbChildListStatusWait";
			this.cbChildListStatusWait.Size = new System.Drawing.Size(72, 24);
			this.cbChildListStatusWait.TabIndex = 6;
			this.cbChildListStatusWait.Text = "s҂";
			this.toolTip1.SetToolTip(this.cbChildListStatusWait, "hWûAus҂vƂȂĂ̂擾܂B");
			// 
			// tabReceiveEvent
			// 
			this.tabReceiveEvent.Controls.Add(this.btnSubmitReceiveEvent);
			this.tabReceiveEvent.Controls.Add(this.cbReceiveEventInfinite);
			this.tabReceiveEvent.Controls.Add(this.tbReceiveEventEvendID);
			this.tabReceiveEvent.Controls.Add(this.label11);
			this.tabReceiveEvent.Controls.Add(this.label12);
			this.tabReceiveEvent.Controls.Add(this.tbReceiveEventTimeout);
			this.tabReceiveEvent.Location = new System.Drawing.Point(4, 38);
			this.tabReceiveEvent.Name = "tabReceiveEvent";
			this.tabReceiveEvent.Size = new System.Drawing.Size(424, 350);
			this.tabReceiveEvent.TabIndex = 7;
			this.tabReceiveEvent.Text = "CxgM";
			this.tabReceiveEvent.ToolTipText = "JmssReceiveEvent APĨTvłB";
			// 
			// btnSubmitReceiveEvent
			// 
			this.btnSubmitReceiveEvent.Location = new System.Drawing.Point(40, 112);
			this.btnSubmitReceiveEvent.Name = "btnSubmitReceiveEvent";
			this.btnSubmitReceiveEvent.TabIndex = 5;
			this.btnSubmitReceiveEvent.Text = "M҂";
			this.toolTip1.SetToolTip(this.btnSubmitReceiveEvent, "CxgM҂ԂɂȂ܂B");
			this.btnSubmitReceiveEvent.Click += new System.EventHandler(this.btnSubmitReceiveEvent_Click);
			// 
			// cbReceiveEventInfinite
			// 
			this.cbReceiveEventInfinite.Location = new System.Drawing.Point(256, 68);
			this.cbReceiveEventInfinite.Name = "cbReceiveEventInfinite";
			this.cbReceiveEventInfinite.Size = new System.Drawing.Size(48, 24);
			this.cbReceiveEventInfinite.TabIndex = 4;
			this.cbReceiveEventInfinite.Text = "";
			this.toolTip1.SetToolTip(this.cbReceiveEventInfinite, "CxgM𖳌ɑ҂킹܂B");
			this.cbReceiveEventInfinite.CheckedChanged += new System.EventHandler(this.cbReceiveEventInfinite_CheckedChanged);
			// 
			// tbReceiveEventEvendID
			// 
			this.tbReceiveEventEvendID.Location = new System.Drawing.Point(144, 31);
			this.tbReceiveEventEvendID.MaxLength = 4;
			this.tbReceiveEventEvendID.Name = "tbReceiveEventEvendID";
			this.tbReceiveEventEvendID.TabIndex = 2;
			this.tbReceiveEventEvendID.Text = "";
			this.toolTip1.SetToolTip(this.tbReceiveEventEvendID, "MCxgIDp4ȓŎw肵܂B");
			// 
			// label11
			// 
			this.label11.Location = new System.Drawing.Point(40, 32);
			this.label11.Name = "label11";
			this.label11.Size = new System.Drawing.Size(88, 16);
			this.label11.TabIndex = 0;
			this.label11.Text = "MCxgID";
			// 
			// label12
			// 
			this.label12.Location = new System.Drawing.Point(40, 72);
			this.label12.Name = "label12";
			this.label12.Size = new System.Drawing.Size(88, 16);
			this.label12.TabIndex = 1;
			this.label12.Text = "^CAEg(b)";
			// 
			// tbReceiveEventTimeout
			// 
			this.tbReceiveEventTimeout.Location = new System.Drawing.Point(144, 71);
			this.tbReceiveEventTimeout.Name = "tbReceiveEventTimeout";
			this.tbReceiveEventTimeout.TabIndex = 3;
			this.tbReceiveEventTimeout.Text = "";
			this.toolTip1.SetToolTip(this.tbReceiveEventTimeout, "^CAEgԂbPʂŎw肵܂BCxgM܂ő҂킹ɂ́uv`FbNĂB");
			// 
			// tabSendEvent
			// 
			this.tabSendEvent.Controls.Add(this.label18);
			this.tabSendEvent.Controls.Add(this.label14);
			this.tabSendEvent.Controls.Add(this.tBValue);
			this.tabSendEvent.Controls.Add(this.tBName);
			this.tabSendEvent.Controls.Add(this.btnAdd);
			this.tabSendEvent.Controls.Add(this.btnDel);
			this.tabSendEvent.Controls.Add(this.lBParam);
			this.tabSendEvent.Controls.Add(this.label13);
			this.tabSendEvent.Controls.Add(this.btnSubmitSendEvent);
			this.tabSendEvent.Controls.Add(this.tbSendEventServerName);
			this.tabSendEvent.Controls.Add(this.label9);
			this.tabSendEvent.Controls.Add(this.label8);
			this.tabSendEvent.Controls.Add(this.label7);
			this.tabSendEvent.Controls.Add(this.label10);
			this.tabSendEvent.Controls.Add(this.tbSendEventQueueName);
			this.tabSendEvent.Controls.Add(this.tbSendEventEventID);
			this.tabSendEvent.Controls.Add(this.tbSendEventMessage);
			this.tabSendEvent.Location = new System.Drawing.Point(4, 38);
			this.tabSendEvent.Name = "tabSendEvent";
			this.tabSendEvent.Size = new System.Drawing.Size(424, 350);
			this.tabSendEvent.TabIndex = 6;
			this.tabSendEvent.Text = "CxgM";
			this.tabSendEvent.ToolTipText = "JmssSendEventAJmssSendEventEx APĨTvłB";
			// 
			// label18
			// 
			this.label18.Location = new System.Drawing.Point(200, 206);
			this.label18.Name = "label18";
			this.label18.Size = new System.Drawing.Size(32, 16);
			this.label18.TabIndex = 12;
			this.label18.Text = "l";
			// 
			// label14
			// 
			this.label14.Location = new System.Drawing.Point(200, 185);
			this.label14.Name = "label14";
			this.label14.Size = new System.Drawing.Size(32, 16);
			this.label14.TabIndex = 11;
			this.label14.Text = "ϐ";
			// 
			// tBValue
			// 
			this.tBValue.Location = new System.Drawing.Point(240, 203);
			this.tBValue.Name = "tBValue";
			this.tBValue.Size = new System.Drawing.Size(96, 19);
			this.tBValue.TabIndex = 11;
			this.tBValue.Text = "";
			this.toolTip1.SetToolTip(this.tBValue, "p[^̒lw肵܂B");
			// 
			// tBName
			// 
			this.tBName.Location = new System.Drawing.Point(240, 180);
			this.tBName.Name = "tBName";
			this.tBName.Size = new System.Drawing.Size(96, 19);
			this.tBName.TabIndex = 10;
			this.tBName.Text = "";
			this.toolTip1.SetToolTip(this.tBName, "p[^̕ϐw肵܂B");
			// 
			// btnAdd
			// 
			this.btnAdd.Location = new System.Drawing.Point(344, 152);
			this.btnAdd.Name = "btnAdd";
			this.btnAdd.Size = new System.Drawing.Size(48, 23);
			this.btnAdd.TabIndex = 13;
			this.btnAdd.Text = "XV";
			this.toolTip1.SetToolTip(this.btnAdd, "ϐAlp[^ɒǉ܂B");
			this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
			// 
			// btnDel
			// 
			this.btnDel.Location = new System.Drawing.Point(344, 128);
			this.btnDel.Name = "btnDel";
			this.btnDel.Size = new System.Drawing.Size(48, 23);
			this.btnDel.TabIndex = 12;
			this.btnDel.Text = "폜";
			this.toolTip1.SetToolTip(this.btnDel, "p[^폜܂B");
			this.btnDel.Click += new System.EventHandler(this.btnDel_Click);
			// 
			// lBParam
			// 
			this.lBParam.ItemHeight = 12;
			this.lBParam.Location = new System.Drawing.Point(168, 124);
			this.lBParam.Name = "lBParam";
			this.lBParam.Size = new System.Drawing.Size(168, 52);
			this.lBParam.Sorted = true;
			this.lBParam.TabIndex = 9;
			this.toolTip1.SetToolTip(this.lBParam, "p[^w肷ƁAJSchedulẽCxgNWuɕnƂ\ɂȂ܂B");
			// 
			// label13
			// 
			this.label13.Location = new System.Drawing.Point(40, 128);
			this.label13.Name = "label13";
			this.label13.Size = new System.Drawing.Size(88, 16);
			this.label13.TabIndex = 4;
			this.label13.Text = "p[^";
			// 
			// btnSubmitSendEvent
			// 
			this.btnSubmitSendEvent.Location = new System.Drawing.Point(40, 264);
			this.btnSubmitSendEvent.Name = "btnSubmitSendEvent";
			this.btnSubmitSendEvent.TabIndex = 14;
			this.btnSubmitSendEvent.Text = "M";
			this.toolTip1.SetToolTip(this.btnSubmitSendEvent, "Cxg𑗐M܂B");
			this.btnSubmitSendEvent.Click += new System.EventHandler(this.btnSubmitSendEvent_Click);
			// 
			// tbSendEventServerName
			// 
			this.tbSendEventServerName.Location = new System.Drawing.Point(168, 32);
			this.tbSendEventServerName.MaxLength = 15;
			this.tbSendEventServerName.Name = "tbSendEventServerName";
			this.tbSendEventServerName.TabIndex = 5;
			this.tbSendEventServerName.Text = "";
			this.toolTip1.SetToolTip(this.tbSendEventServerName, "MJMSST[ow肵܂Bw莞͎JMSST[oɂȂ܂B");
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(40, 82);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(100, 11);
			this.label9.TabIndex = 2;
			this.label9.Text = "MCxgID";
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(40, 57);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(112, 16);
			this.label8.TabIndex = 1;
			this.label8.Text = "MWuL[";
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(40, 32);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(128, 16);
			this.label7.TabIndex = 0;
			this.label7.Text = "MJMSST[o";
			// 
			// label10
			// 
			this.label10.Location = new System.Drawing.Point(40, 102);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(100, 17);
			this.label10.TabIndex = 3;
			this.label10.Text = "MbZ[W";
			// 
			// tbSendEventQueueName
			// 
			this.tbSendEventQueueName.Location = new System.Drawing.Point(168, 55);
			this.tbSendEventQueueName.MaxLength = 15;
			this.tbSendEventQueueName.Name = "tbSendEventQueueName";
			this.tbSendEventQueueName.TabIndex = 6;
			this.tbSendEventQueueName.Text = "";
			this.toolTip1.SetToolTip(this.tbSendEventQueueName, "M̃WuL[w肵܂Bw肵Ȃꍇɂ͑Sғ}Vɒʒm܂̂ŁAԐMxȂ邱Ƃ܂B");
			// 
			// tbSendEventEventID
			// 
			this.tbSendEventEventID.Location = new System.Drawing.Point(168, 78);
			this.tbSendEventEventID.MaxLength = 4;
			this.tbSendEventEventID.Name = "tbSendEventEventID";
			this.tbSendEventEventID.TabIndex = 7;
			this.tbSendEventEventID.Text = "";
			this.toolTip1.SetToolTip(this.tbSendEventEventID, "CxgIDp4ȓŐݒ肵܂B");
			// 
			// tbSendEventMessage
			// 
			this.tbSendEventMessage.Location = new System.Drawing.Point(168, 101);
			this.tbSendEventMessage.MaxLength = 128;
			this.tbSendEventMessage.Name = "tbSendEventMessage";
			this.tbSendEventMessage.Size = new System.Drawing.Size(224, 19);
			this.tbSendEventMessage.TabIndex = 8;
			this.tbSendEventMessage.Text = "";
			this.toolTip1.SetToolTip(this.tbSendEventMessage, "bZ[Ww肵܂BIvVłB");
			// 
			// tabCurrentJobNo
			// 
			this.tabCurrentJobNo.Controls.Add(this.button4);
			this.tabCurrentJobNo.Location = new System.Drawing.Point(4, 38);
			this.tabCurrentJobNo.Name = "tabCurrentJobNo";
			this.tabCurrentJobNo.Size = new System.Drawing.Size(424, 350);
			this.tabCurrentJobNo.TabIndex = 5;
			this.tabCurrentJobNo.Text = "Wuԍ擾";
			this.tabCurrentJobNo.ToolTipText = "JmssCurrentJobNo APĨTvłB";
			// 
			// button4
			// 
			this.button4.Location = new System.Drawing.Point(56, 32);
			this.button4.Name = "button4";
			this.button4.TabIndex = 0;
			this.button4.Text = "擾";
			this.toolTip1.SetToolTip(this.button4, "Wuԍ擾܂B̃TvJMSSNĂȂꍇ͎s܂B");
			this.button4.Click += new System.EventHandler(this.button4_Click);
			// 
			// tabGetJobQ
			// 
			this.tabGetJobQ.Controls.Add(this.button6);
			this.tabGetJobQ.Controls.Add(this.btnGetJobQ);
			this.tabGetJobQ.Controls.Add(this.tBCurrentEntryJob);
			this.tabGetJobQ.Controls.Add(this.tBCurRunningJob);
			this.tabGetJobQ.Controls.Add(this.tBQueStatus);
			this.tabGetJobQ.Controls.Add(this.label22);
			this.tabGetJobQ.Controls.Add(this.label21);
			this.tabGetJobQ.Controls.Add(this.label20);
			this.tabGetJobQ.Controls.Add(this.tBGetJobQName);
			this.tabGetJobQ.Controls.Add(this.label19);
			this.tabGetJobQ.Controls.Add(this.gbResult);
			this.tabGetJobQ.Location = new System.Drawing.Point(4, 38);
			this.tabGetJobQ.Name = "tabGetJobQ";
			this.tabGetJobQ.Size = new System.Drawing.Size(424, 350);
			this.tabGetJobQ.TabIndex = 10;
			this.tabGetJobQ.Text = "WuL[擾";
			this.tabGetJobQ.ToolTipText = "JmstsGetJobQueue APĨTvłB";
			// 
			// button6
			// 
			this.button6.Location = new System.Drawing.Point(272, 32);
			this.button6.Name = "button6";
			this.button6.TabIndex = 2;
			this.button6.Text = "Q...";
			this.toolTip1.SetToolTip(this.button6, "WuL[Qƃ_CAO\܂B");
			this.button6.Click += new System.EventHandler(this.button6_Click);
			// 
			// btnGetJobQ
			// 
			this.btnGetJobQ.Location = new System.Drawing.Point(48, 80);
			this.btnGetJobQ.Name = "btnGetJobQ";
			this.btnGetJobQ.TabIndex = 3;
			this.btnGetJobQ.Text = "擾";
			this.toolTip1.SetToolTip(this.btnGetJobQ, "WuL[擾܂Bʂ͉ɕ\܂B");
			this.btnGetJobQ.Click += new System.EventHandler(this.button5_Click_1);
			// 
			// tBCurrentEntryJob
			// 
			this.tBCurrentEntryJob.Location = new System.Drawing.Point(200, 224);
			this.tBCurrentEntryJob.Name = "tBCurrentEntryJob";
			this.tBCurrentEntryJob.ReadOnly = true;
			this.tBCurrentEntryJob.TabIndex = 10;
			this.tBCurrentEntryJob.Text = "";
			this.toolTip1.SetToolTip(this.tBCurrentEntryJob, "ݓo^ς݂̃WułBs̃WułȂAs҂AۗAr҂Ȃǂ̃Wu܂܂܂B");
			// 
			// tBCurRunningJob
			// 
			this.tBCurRunningJob.Location = new System.Drawing.Point(200, 192);
			this.tBCurRunningJob.Name = "tBCurRunningJob";
			this.tBCurRunningJob.ReadOnly = true;
			this.tBCurRunningJob.TabIndex = 8;
			this.tBCurRunningJob.Text = "";
			this.toolTip1.SetToolTip(this.tBCurRunningJob, "ݎs̃WułB");
			// 
			// tBQueStatus
			// 
			this.tBQueStatus.Location = new System.Drawing.Point(200, 160);
			this.tBQueStatus.Name = "tBQueStatus";
			this.tBQueStatus.ReadOnly = true;
			this.tBQueStatus.TabIndex = 6;
			this.tBQueStatus.Text = "";
			this.toolTip1.SetToolTip(this.tBQueStatus, "WuL[̏ԂłB");
			// 
			// label22
			// 
			this.label22.Location = new System.Drawing.Point(72, 224);
			this.label22.Name = "label22";
			this.label22.Size = new System.Drawing.Size(120, 16);
			this.label22.TabIndex = 9;
			this.label22.Text = "ݓo^ς݃Wu";
			// 
			// label21
			// 
			this.label21.Location = new System.Drawing.Point(72, 192);
			this.label21.Name = "label21";
			this.label21.Size = new System.Drawing.Size(120, 16);
			this.label21.TabIndex = 7;
			this.label21.Text = "ݎsWu";
			// 
			// label20
			// 
			this.label20.Location = new System.Drawing.Point(72, 160);
			this.label20.Name = "label20";
			this.label20.Size = new System.Drawing.Size(100, 16);
			this.label20.TabIndex = 5;
			this.label20.Text = "";
			// 
			// tBGetJobQName
			// 
			this.tBGetJobQName.Location = new System.Drawing.Point(136, 32);
			this.tBGetJobQName.Name = "tBGetJobQName";
			this.tBGetJobQName.Size = new System.Drawing.Size(128, 19);
			this.tBGetJobQName.TabIndex = 1;
			this.tBGetJobQName.Text = "";
			this.toolTip1.SetToolTip(this.tBGetJobQName, "WuL[͂邩AE[Q]őI܂B");
			// 
			// label19
			// 
			this.label19.Location = new System.Drawing.Point(48, 32);
			this.label19.Name = "label19";
			this.label19.Size = new System.Drawing.Size(80, 16);
			this.label19.TabIndex = 0;
			this.label19.Text = "WuL[";
			// 
			// gbResult
			// 
			this.gbResult.Controls.Add(this.label23);
			this.gbResult.Controls.Add(this.tBEntryStatus);
			this.gbResult.Location = new System.Drawing.Point(48, 128);
			this.gbResult.Name = "gbResult";
			this.gbResult.Size = new System.Drawing.Size(360, 168);
			this.gbResult.TabIndex = 4;
			this.gbResult.TabStop = false;
			this.gbResult.Text = "";
			this.toolTip1.SetToolTip(this.gbResult, "Ɍʂ\܂B");
			// 
			// label23
			// 
			this.label23.Location = new System.Drawing.Point(24, 128);
			this.label23.Name = "label23";
			this.label23.TabIndex = 0;
			this.label23.Text = "o^";
			// 
			// tBEntryStatus
			// 
			this.tBEntryStatus.Location = new System.Drawing.Point(152, 128);
			this.tBEntryStatus.Name = "tBEntryStatus";
			this.tBEntryStatus.ReadOnly = true;
			this.tBEntryStatus.Size = new System.Drawing.Size(184, 19);
			this.tBEntryStatus.TabIndex = 1;
			this.tBEntryStatus.Text = "";
			this.toolTip1.SetToolTip(this.tBEntryStatus, "o^󋵂\܂B");
			// 
			// tabReportEvent
			// 
			this.tabReportEvent.Controls.Add(this.btnSubmitReportEvent);
			this.tabReportEvent.Controls.Add(this.cbReportEventMode);
			this.tabReportEvent.Controls.Add(this.label15);
			this.tabReportEvent.Controls.Add(this.label16);
			this.tabReportEvent.Controls.Add(this.label17);
			this.tabReportEvent.Controls.Add(this.tbReportEventMessage);
			this.tabReportEvent.Controls.Add(this.cbReportEventType);
			this.tabReportEvent.Location = new System.Drawing.Point(4, 38);
			this.tabReportEvent.Name = "tabReportEvent";
			this.tabReportEvent.Size = new System.Drawing.Size(424, 350);
			this.tabReportEvent.TabIndex = 9;
			this.tabReportEvent.Text = "A[gʕ";
			this.tabReportEvent.ToolTipText = "JmssReportEvent APĨTvłB";
			// 
			// btnSubmitReportEvent
			// 
			this.btnSubmitReportEvent.Location = new System.Drawing.Point(40, 144);
			this.btnSubmitReportEvent.Name = "btnSubmitReportEvent";
			this.btnSubmitReportEvent.TabIndex = 6;
			this.btnSubmitReportEvent.Text = "ʕ";
			this.toolTip1.SetToolTip(this.btnSubmitReportEvent, "A[gʕ񂵂܂B");
			this.btnSubmitReportEvent.Click += new System.EventHandler(this.btnSubmitReportEvent_Click);
			// 
			// cbReportEventMode
			// 
			this.cbReportEventMode.Items.AddRange(new object[] {
																   "ESMPRO}l[W",
																   "ESMPROy[W"});
			this.cbReportEventMode.Location = new System.Drawing.Point(152, 24);
			this.cbReportEventMode.Name = "cbReportEventMode";
			this.cbReportEventMode.Size = new System.Drawing.Size(121, 20);
			this.cbReportEventMode.TabIndex = 3;
			this.cbReportEventMode.Text = "I";
			this.toolTip1.SetToolTip(this.cbReportEventMode, "ʒmI܂B");
			// 
			// label15
			// 
			this.label15.Location = new System.Drawing.Point(32, 26);
			this.label15.Name = "label15";
			this.label15.Size = new System.Drawing.Size(100, 16);
			this.label15.TabIndex = 0;
			this.label15.Text = "ʒm";
			// 
			// label16
			// 
			this.label16.Location = new System.Drawing.Point(32, 65);
			this.label16.Name = "label16";
			this.label16.Size = new System.Drawing.Size(100, 16);
			this.label16.TabIndex = 1;
			this.label16.Text = "^Cv";
			// 
			// label17
			// 
			this.label17.Location = new System.Drawing.Point(32, 104);
			this.label17.Name = "label17";
			this.label17.Size = new System.Drawing.Size(100, 16);
			this.label17.TabIndex = 2;
			this.label17.Text = "bZ[W";
			// 
			// tbReportEventMessage
			// 
			this.tbReportEventMessage.Location = new System.Drawing.Point(152, 104);
			this.tbReportEventMessage.Name = "tbReportEventMessage";
			this.tbReportEventMessage.Size = new System.Drawing.Size(208, 19);
			this.tbReportEventMessage.TabIndex = 5;
			this.tbReportEventMessage.Text = "";
			this.toolTip1.SetToolTip(this.tbReportEventMessage, "bZ[W͂܂B");
			// 
			// cbReportEventType
			// 
			this.cbReportEventType.Items.AddRange(new object[] {
																   "",
																   "x",
																   "G["});
			this.cbReportEventType.Location = new System.Drawing.Point(152, 64);
			this.cbReportEventType.Name = "cbReportEventType";
			this.cbReportEventType.Size = new System.Drawing.Size(80, 20);
			this.cbReportEventType.TabIndex = 4;
			this.cbReportEventType.Text = "I";
			this.toolTip1.SetToolTip(this.cbReportEventType, "ʕ^CvI܂B");
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
			this.ClientSize = new System.Drawing.Size(464, 421);
			this.Controls.Add(this.tabControl1);
			this.Name = "Form1";
			this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
			this.Text = "JapiTest for C# .NET";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.JapiTestClosing);
			this.tabControl1.ResumeLayout(false);
			this.tabPageThrowJob.ResumeLayout(false);
			this.tabWaitJob.ResumeLayout(false);
			this.tabGetJobStatus.ResumeLayout(false);
			this.tabControlJob.ResumeLayout(false);
			this.tabChildJobList.ResumeLayout(false);
			this.tabReceiveEvent.ResumeLayout(false);
			this.tabSendEvent.ResumeLayout(false);
			this.tabCurrentJobNo.ResumeLayout(false);
			this.tabGetJobQ.ResumeLayout(false);
			this.gbResult.ResumeLayout(false);
			this.tabReportEvent.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// AvP[ṼC Gg |CgłB
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}


		/// <summary>
		/// WupĺuvIꂽ̏łB
		/// </summary>
		private void btnThrowSubmit_Click(object sender, System.EventArgs e)
		{
			JMSSJOBTHROWINFOEX sJmssJobThrowInfo = new JMSSJOBTHROWINFOEX();
			sJmssJobThrowInfo.JobName = tbBizName.Text;
			sJmssJobThrowInfo.JobPath = tbJobName.Text;
			// Wuݒ肳ĂȂƂ̓G[
			if(tbJobName.Text.Length == 0)
			{

				MessageBox.Show("Wuw肵Ă" ,
					"G[bZ[W" ,
					MessageBoxButtons.OK);
				return ;
			}
			sJmssJobThrowInfo.JobParam = tbParameter.Text;
			switch(cbStdout.SelectedIndex) 
			{
				case 0 :
					sJmssJobThrowInfo.WatchStdOut = (int)ThrowJob.Stdout.JMSS_STDOUT_NOWATCH;
					break;
				case 1:
					sJmssJobThrowInfo.WatchStdOut = (int)ThrowJob.Stdout.JMSS_STDOUT_SYSTEM_OVERWRITE;
					break;
				case 2:
					sJmssJobThrowInfo.WatchStdOut = (int)ThrowJob.Stdout.JMSS_STDOUT_SYSTEM_APPEND;
					break;
				case 3:
					sJmssJobThrowInfo.WatchStdOut = (int)ThrowJob.Stdout.JMSS_STDOUT_USER_OVERWRITE;
					break;
				case 4:
					sJmssJobThrowInfo.WatchStdOut = (int)ThrowJob.Stdout.JMSS_STDOUT_USER_APPEND;
					break;
				default :
					sJmssJobThrowInfo.WatchStdOut = (int)ThrowJob.Stdout.JMSS_STDOUT_NOWATCH;
					break;
			}

			sJmssJobThrowInfo.StdoutFile = tbStdoutFile.Text;
			sJmssJobThrowInfo.ExecDir = tbExecDir.Text;
			try 
			{
				sJmssJobThrowInfo.MaxElapseTime = Int32.Parse(tbTimeOut.Text);
			}
			catch 
			{
				sJmssJobThrowInfo.MaxElapseTime = 0;
			}
			sJmssJobThrowInfo.QueueName = tbQueueName.Text;
			sJmssJobThrowInfo.MaxWorkingSetSize = 0;
			sJmssJobThrowInfo.RepeatLastCount = 0;
			switch(cbPriority.SelectedIndex)
			{
				case 0 :
					sJmssJobThrowInfo.Priority = (int)ThrowJob.Priority.JMSS_PRIORITY_REAL;
					break;
				case 1:
					sJmssJobThrowInfo.Priority = (int)ThrowJob.Priority.JMSS_PRIORITY_HIGH;
					break;
				case 2:
					sJmssJobThrowInfo.Priority = (int)ThrowJob.Priority.JMSS_PRIORITY_NORMAL;
					break;
				case 3 :
					sJmssJobThrowInfo.Priority = (int)ThrowJob.Priority.JMSS_PRIORITY_IDLE;
					break;
				default :
					sJmssJobThrowInfo.Priority = (int)ThrowJob.Priority.JMSS_PRIORITY_NORMAL;
					break;
			}
			
			int dwExecType = cbExecType.SelectedIndex;
			if (dwExecType == -1)
			{
				dwExecType=0;
			}

			sJmssJobThrowInfo.ExecType=(ushort)dwExecType;// Add for Ver7.1 2008.05.12

			String JmssServerName = null;

			// WuAPIĂяo
			int JobNo = 0;
			int dwRet = Japi.JmssThrowJobEx(JmssServerName ,			// Upd for Ver7.1 2008.05.12
				ref sJmssJobThrowInfo , ref JobNo);
			
			MessageBox.Show("^[R[h:" + dwRet.ToString() + "(0x" + dwRet.ToString("X") + ")" + "\nWuԍ:" + JobNo.ToString() ,
				"s" ,
				MessageBoxButtons.OK);
		}

		
		/// <summary>
		/// WupĺuWóvύXꂽ̏łB
		/// </summary>
		private void StdoutChanged(object sender, System.EventArgs e)
		{
			if (cbStdout.SelectedIndex > 2) 
				tbStdoutFile.Enabled = true;
			else 
				tbStdoutFile.Enabled = false;
		}

		
		/// <summary>
		/// Wupl̃WuuQƁv{^ȈłB
		/// </summary>
		private void btnJobDialog_Click(object sender, System.EventArgs e)
		{
			// WuQƃ_CAO\
			openFileDialog1.InitialDirectory = @"C:\";
			openFileDialog1.Filter = "st@C (*.com;*.exe;*.bat;*.cmd;*.jnt)|*.com;*.exe;*.bat;*.cmd;*.jnt|All Files (*.*)|*.*";
			openFileDialog1.FilterIndex = 2;
			openFileDialog1.RestoreDirectory = true;

			if (openFileDialog1.ShowDialog() == DialogResult.OK)
			{
				tbJobName.Text = openFileDialog1.FileName;
			}

		}

		
		/// <summary>
		/// WupĺuWuvύXꂽ̏łB
		/// </summary>
		private void ChangedJobName(object sender, System.EventArgs e)
		{
			if (tbBizName.Text.Length == 0) 
				tbBizName.Text = System.IO.Path.GetFileNameWithoutExtension(tbJobName.Text);
		}

		
		/// <summary>
		/// WuI҂pĺuJnvIꂽ̏łB
		/// </summary>
		private void button1_Click(object sender, System.EventArgs e)
		{
			int Jobno;
			uint Timeout;
			try 
			{
				Jobno = Int32.Parse(tbWaitJobJobNo.Text);
			}
			catch 
			{
				MessageBox.Show("Wuԍ̎w肪Ă܂" ,
					"G[" ,
					MessageBoxButtons.OK);
				return ;
			}
			if (checkboxInfinite.Checked == true)
				Timeout = (uint)WaitJob.Timeout.INFINITE;
			else 
			{
				try 
				{
					if(tbWaitJobTimeout.Text.Length != 0) 
						Timeout = (uint)Int32.Parse(tbWaitJobTimeout.Text);
					else 
						Timeout = 0;
				}
				catch
				{
					MessageBox.Show("^CAEg̎w肪Ă܂" ,
						"G[" ,
						MessageBoxButtons.OK);
					return ;
				}
			}
			String JmssServerName = null;
			JMSSJOBINFO sJmssJobInfo = null;

			// WuI҂API
			int dwRet = Japi.JmssWaitJobExit(
				JmssServerName ,
				Jobno ,
				ref sJmssJobInfo ,
				(int)Timeout);

			if(dwRet == 0) 
			{
				MessageBox.Show("WuI܂" ,
					"WaitJobExit" ,
					MessageBoxButtons.OK);
				return ;
			}
			if(dwRet == (int)ErrorCode.Code.JMSS_TIMEOUT) 
			{
				MessageBox.Show("^CAEg܂" ,
					"WaitJobExit" ,
					MessageBoxButtons.OK);
				return ;
			}
			MessageBox.Show("G[R[h:" + dwRet.ToString() + "(0x" + dwRet.ToString("X") + ")" ,
				"WaitJobExit" ,
				MessageBoxButtons.OK);
			return ;
	
		}

		
		private void JapiTestClosing(object sender, System.ComponentModel.CancelEventArgs e)
		{
			Dispose();

			return;
		}

		
		/// <summary>
		/// WuI҂pĺuvύXꂽ̏łB
		/// </summary>
		private void CheckTimeoutChanged(object sender, System.EventArgs e)
		{
			if (checkboxInfinite.Checked == true)
				tbWaitJobTimeout.Enabled = false;
			else 
				tbWaitJobTimeout.Enabled = true;
		}

		
		/// <summary>
		/// Wu擾pĺu擾vIꂽ̏łB
		/// </summary>
		private void button2_Click(object sender, System.EventArgs e)
		{
			int JobNo;

			try 
			{
				JobNo = Int32.Parse(tbJobStsJobNo.Text);
			}
			catch
			{
				MessageBox.Show("Wuԍ̎w肪Ă܂" ,
					"G[" ,
					MessageBoxButtons.OK);
				return ;
			}

			String JmssServerName = null;
			JMSSJOBINFOEX sJmssJobInfoEx = new JMSSJOBINFOEX();

			// Wu擾API
			int dwRet = Japi.JmssGetJobStatusEx(
				JmssServerName ,
				JobNo ,
				ref sJmssJobInfoEx);

			if (dwRet == 0) 
			{
				FormJobInfo formJobInfo = new FormJobInfo(sJmssJobInfoEx);
				formJobInfo.ShowDialog(this);
				formJobInfo.Dispose();
			}
			else 
			{
				MessageBox.Show("sɎs܂B\nCode = " + dwRet.ToString() + "(0x" + dwRet.ToString("X") + ")" ,
					"JmssGetJobStatusEx Error" ,
					MessageBoxButtons.OK);
				return ;
			}
		}

		
		/// <summary>
		/// WupĺusvIꂽ̏łB
		/// </summary>
		private void btnSubmitControlJob_Click(object sender, System.EventArgs e)
		{
			int JobNo;

			try 
			{
				JobNo = Int32.Parse(tbControlJobJobNo.Text);
			}
			catch
			{
				MessageBox.Show("Wuԍ̎w肪Ă܂" ,
					"G[" ,
					MessageBoxButtons.OK);
				return ;
			}

			String JmssServerName = null;
			
			ControlJob.ControlCode controlCode;
			switch(cbControlJobRequestCode.SelectedIndex)
			{
				case 0:
					controlCode = ControlJob.ControlCode.JMSS_CONTROL_TERMINATE ;
					break;
				case 1:
					controlCode = ControlJob.ControlCode.JMSS_CONTROL_SUSPEND ;
					break;
				case 2:
					controlCode = ControlJob.ControlCode.JMSS_CONTROL_RESUME ;
					break;
				case 3:
					controlCode = ControlJob.ControlCode.JMSS_CONTROL_HOLD ;
					break;
				case 4:
					controlCode = ControlJob.ControlCode.JMSS_CONTROL_RELEASE ;
					break;
				case 5:
					controlCode = ControlJob.ControlCode.JMSS_CONTROL_DELETE ;
					break;
				case 6:
					controlCode = ControlJob.ControlCode.JMSS_CONTROL_STOP ;
					break;
				case 7:
					controlCode = ControlJob.ControlCode.JMSS_CONTROL_CONTINUE ;
					break;
				default :
					MessageBox.Show("v̎w肪Ă܂" ,
						"G[" ,
						MessageBoxButtons.OK);
					return ;
			}

			// WuAPI
			int dwRet = Japi.JmssControlJob(JmssServerName,controlCode ,JobNo);
			MessageBox.Show("v:" + dwRet.ToString() + "(0x" + dwRet.ToString("X") + ")" ,
				"JmssControlJob" ,
				MessageBoxButtons.OK);


		}

		
		/// <summary>
		/// hWuꗗ擾pĺuWu擾vύXꂽ̏łB
		/// </summary>
		private void checkBox1_CheckedChanged(object sender, System.EventArgs e)
		{
			if(cbChildListOnlyJobNumber.Checked == true) 
				tbChildListMaxNumber.Enabled = false;
			else 
				tbChildListMaxNumber.Enabled = true;
		}

		
		/// <summary>
		/// hWuꗗ擾pĺu擾vIꂽ̏łB
		/// </summary>
		private void btnGetChildJobList_Click(object sender, System.EventArgs e)
		{
			int JobNo;

			try 
			{
				JobNo = Int32.Parse(tbChildListJobNo.Text);
			}
			catch
			{
				MessageBox.Show("Wuԍ̎w肪Ă܂" ,
					"G[" ,
					MessageBoxButtons.OK);
				return ;
			}

			int GetJobNumber = 0;
			
			if (cbChildListOnlyJobNumber.Checked == false) 
			{
				try 
				{
					GetJobNumber = Int32.Parse(tbChildListMaxNumber.Text);
				}
				catch
				{
					MessageBox.Show("擾ő吔̎w肪Ă܂" ,
						"G[" ,
						MessageBoxButtons.OK);
					return ;
				}
			}



			String JmssServerName = null;

			JobStatus.QueryStatus QueryJobStatus = 0;

			if(cbChildListStatusEnd.Checked == true) 
				QueryJobStatus = (JobStatus.QueryStatus)((int)QueryJobStatus 
					| (int)JobStatus.QueryStatus.JMSS_CONTROL_END);

			if(cbChildListStatusRun.Checked == true)
				QueryJobStatus = (JobStatus.QueryStatus)((int)QueryJobStatus 
					| (int)JobStatus.QueryStatus.JMSS_CONTROL_RUN);

			if(cbChildListStatusWait.Checked == true)
				QueryJobStatus = (JobStatus.QueryStatus)((int)QueryJobStatus 
					| (int)JobStatus.QueryStatus.JMSS_CONTROL_QUE);


			int[] JobNoList = null;

			if(cbChildListOnlyJobNumber.Checked == false)
			{
				JobNoList = new int[GetJobNumber];
			} 
			else
			{
				JobNoList = null;
			}

			// hWu擾API
			int dwRet = Japi.JmssGetChildJobList(JmssServerName ,
				JobNo ,
				QueryJobStatus ,
				ref GetJobNumber ,
				ref JobNoList);

			if (dwRet == 0)
			{
				ChildJobList formChildJobList = new ChildJobList(JobNo , GetJobNumber , JobNoList);
				formChildJobList.ShowDialog(this);
					
				formChildJobList.Dispose();

				return;
			}

			if (dwRet == (int)ErrorCode.Code.JMSS_NO_ENOUGH_BUF)
			{
				MessageBox.Show("Wu:" + GetJobNumber.ToString() ,
					"GetChildJobList" ,
					MessageBoxButtons.OK);
				return ;
			}
			MessageBox.Show("G[R[h:" + dwRet.ToString() + "(0x" + dwRet.ToString("X") + ")" ,
				"G[" ,
				MessageBoxButtons.OK);
			return ;
		}

		
		/// <summary>
		/// Wuԍ擾pĺu擾vIꂽ̏łB
		/// </summary>
		private void button4_Click(object sender, System.EventArgs e)
		{
			int JobNo;
			String JmssServerName;

			// Wuԍ擾API
			int dwRet = Japi.JmssCurrentJobNo(out JmssServerName , out JobNo);

			if (dwRet == 0) 
				MessageBox.Show("JMSST[o:" + JmssServerName + "\n" + "Wuԍ:" + JobNo.ToString() ,
					"CurrentJobNo" ,
					MessageBoxButtons.OK);
			else 
				MessageBox.Show("G[R[h:" + dwRet.ToString() + "(0x" + dwRet.ToString("X") + ")" ,
					"G[" ,
					MessageBoxButtons.OK);

			return ;
			
		}

		
		/// <summary>
		/// CxgMpĺuMvIꂽ̏łB
		/// </summary>
		private void btnSubmitSendEvent_Click(object sender, System.EventArgs e)
		{
			String JmssServerName = null;
			String QueueName = null;
			String EventID = null;
			String Message = null;
			String Param = null;
			int dwRet = 0;

			if (tbSendEventServerName.Text.Length != 0)
				JmssServerName = tbSendEventServerName.Text;
			if (tbSendEventQueueName.Text.Length != 0)
				QueueName = tbSendEventQueueName.Text;
			if (tbSendEventEventID.Text.Length != 0) 
				EventID = tbSendEventEventID.Text;
			if (tbSendEventMessage.Text.Length != 0) 
				Message = tbSendEventMessage.Text;

			// p[^ݒ肳ĂH
			if(lBParam.Items.Count != 0)
			{
				// p[^name=value\0name=value\0...\0\0`Ŋi[
				foreach (String s in lBParam.Items) 
				{
					Param = Param + s.ToString() + '\0';
				}
				Param = Param + '\0';

				// p[^tCxgMAPI
				dwRet = Japi.JmssSendEventEx(
					JmssServerName ,
					QueueName ,
					EventID ,
					Message ,
					Param);
			}
			else
			{
				// CxgMAPI
				dwRet = Japi.JmssSendEvent(
					JmssServerName ,
					QueueName ,
					EventID ,
					Message);
			}

			if (dwRet == 0) 
			{
				MessageBox.Show("M" ,
					"SendEvent" ,
					MessageBoxButtons.OK);
			} 
			else 
			{
				MessageBox.Show("G[R[h:" + dwRet.ToString() + "(0x" + dwRet.ToString("X") + ")" ,
					"G[" ,
					MessageBoxButtons.OK);
			}
			return ;
		}

		
		/// <summary>
		/// A[gʕpĺuʕvIꂽ̏łB
		/// </summary>
		private void btnSubmitReportEvent_Click(object sender, System.EventArgs e)
		{
			ReportEvent.Mode Mode;
			ReportEvent.Type Type;

			switch(cbReportEventMode.SelectedIndex)
			{
				case 0 :
					Mode = ReportEvent.Mode.JMSS_JALT_MODE_MANAGER;
					break;
				case 1 :
					Mode = ReportEvent.Mode.JMSS_JALT_MODE_PAGER;
					break;
				default :
					MessageBox.Show("ʒm̎w肪Ă܂" ,
						"G[" ,
						MessageBoxButtons.OK);
					return ;
			}

			switch(cbReportEventType.SelectedIndex)
			{
				case 0 :
					Type = ReportEvent.Type.JMSS_JALT_TYPE_INFORMATION;
					break;
				case 1:
					Type = ReportEvent.Type.JMSS_JALT_TYPE_WARNING;
					break;
				case 2 :
					Type = ReportEvent.Type.JMSS_JALT_TYPE_ERROR;
					break;
				default :
					MessageBox.Show("A[gʂ̎w肪Ă܂" ,
						"G[" ,
						MessageBoxButtons.OK);
					return ;
			}

			String Message = null;
			if(tbReportEventMessage.Text.Length != 0) 
				Message = tbReportEventMessage.Text;

			// A[gʕAPI
			int dwRet = Japi.JmssReportEvent(Mode,Type,Message);

			if (dwRet == 0) 
			{
				MessageBox.Show("M" ,
					"ReportEvent" ,
					MessageBoxButtons.OK);
			} 
			else 
			{
				MessageBox.Show("G[R[h:" + dwRet.ToString() + "(0x" + dwRet.ToString("X") + ")" ,
					"G[" ,
					MessageBoxButtons.OK);
			}

			return ;

		}

		
		/// <summary>
		/// CxgMpĺuM҂vIꂽ̏łB
		/// </summary>
		private void btnSubmitReceiveEvent_Click(object sender, System.EventArgs e)
		{
			uint Timeout;
			String RecvEventID = null;

			if (cbReceiveEventInfinite.Checked == false)
			{
				try 
				{
					Timeout = (uint)Int32.Parse(tbReceiveEventTimeout.Text);
				}
				catch
				{
					MessageBox.Show("^CAEg̎w肪Ă܂" ,
						"G[" ,
						MessageBoxButtons.OK);
					return ;
				}
			}
			else 
			{
				Timeout = (uint)ReceiveEvent.Timeout.INFINITE;
			}

			if (tbReceiveEventEvendID.Text.Length != 0) 
			{
				RecvEventID = tbReceiveEventEvendID.Text;
			}

			String ServerName ;
			String MachineName;
			String UserName;
			String Message;
			String ReceivedEventID;

			// CxgMAPI
			int dwRet = Japi.JmssReceiveEvent(
				RecvEventID ,
				out ServerName ,
				out MachineName ,
				out UserName ,
				out Message ,
				out ReceivedEventID ,
				Timeout);

			if(dwRet == 0) 
			{
				// Formɕ\
				FormReceiveEvent formReceiveEvent = new FormReceiveEvent(
					RecvEventID ,
					ServerName.ToString() ,
					MachineName.ToString() ,
					UserName.ToString() ,
					Message.ToString() , 
					ReceivedEventID.ToString());
				formReceiveEvent.ShowDialog(this);

				formReceiveEvent.Dispose();
			}
			else 
			{
				MessageBox.Show("G[R[h:" + dwRet.ToString() + "(0x" + dwRet.ToString("X") + ")" ,
					"G[" ,
					MessageBoxButtons.OK);
			}
			
			return ;
		}

		
		/// <summary>
		/// WuL[Qƃ_CAO\鏈łB
		/// </summary>
		private void button5_Click(object sender, System.EventArgs e)
		{
			String JmssServerName = null;
			String QueueName = null;
			String Title = null;
			IntPtr hwndOwner = IntPtr.Zero;

			// WuL[
			if (tbQueueName.Text.Length != 0) 
				QueueName = tbQueueName.Text;

			// WuL[QAPI
			int dwRet = Japi.JmssDispQueueDialog(
				JmssServerName ,
				hwndOwner ,
				ref QueueName ,
				Title);

			if(dwRet == 0) 
			{
				// WuL[ݒ
				tbQueueName.Text = QueueName.ToString();
			} 
		}

		
		/// <summary>
		/// CxgMpĺu폜vIꂽ̏łB
		/// </summary>
		private void btnDel_Click(object sender, System.EventArgs e)
		{
			// 폜{^ꂽ
			// Xg{bNX̑Is擾
			if(lBParam.SelectedIndex != -1)
			{
				int i = lBParam.Items.Count;
				// Xg{bNX폜
				lBParam.Items.RemoveAt(lBParam.SelectedIndex);
			}
		}

		
		/// <summary>
		/// CxgMpĺuXVvIꂽ̏łB
		/// </summary>
		private void btnAdd_Click(object sender, System.EventArgs e)
		{
			// XV{^ꂽ
			if((tBName.TextLength != 0) && (tBValue.TextLength != 0))
			{
				String Parambuff = null;
				Parambuff = tBName.Text + "=" + tBValue.Text;
				// Xg{bNXɒǉ
				lBParam.Items.Add(Parambuff);
			}
		}

		
		/// <summary>
		/// WuL[Qƃ_CAO\鏈łB
		/// </summary>
		private void button6_Click(object sender, System.EventArgs e)
		{
			String JmssServerName = null;
			String QueueName = null;
			String Title = null;
			IntPtr hwndOwner = IntPtr.Zero;

			// WuL[
			if (tbQueueName.Text.Length != 0) 
				QueueName = tBGetJobQName.Text;

			// WuL[QAPI
			int dwRet = Japi.JmssDispQueueDialog(
				JmssServerName ,
				hwndOwner ,
				ref QueueName ,
				Title);

			if(dwRet == 0) 
			{
				// WuL[ݒ
				tBGetJobQName.Text = QueueName.ToString();
			} 
		}
	
	
		/// <summary>
		/// WuL[擾pĺu擾vIꂽ̏łB
		/// </summary>
		private void button5_Click_1(object sender, System.EventArgs e)
		{
			JMSSJOBQINFO sJmssJobQInfo = new JMSSJOBQINFO();
			String ServerName = null;
			String QueueName = null;

			QueueName = tBGetJobQName.Text;

			// WuL[擾API
			int dwRet = Japi.JmssGetJobQueue(
				ServerName ,
				QueueName ,
				ref sJmssJobQInfo);

			if(dwRet == 0) 
			{
				// Formɕ\
				switch(sJmssJobQInfo.JobQueCondition) 
				{
					case (int)QueStatus.Status.JMSS_JOBQUECOND_OPEN:
						tBQueStatus.Text = "JĂ܂";
						break;
					case (int)QueStatus.Status.JMSS_JOBQUECOND_CLOSE:
						tBQueStatus.Text = "Ă܂";
						break;
					default:
						tBQueStatus.Text = "sł";
						break;
				}
				tBCurRunningJob.Text = sJmssJobQInfo.CurRunningJob.ToString();
				tBCurrentEntryJob.Text = sJmssJobQInfo.CurrentEntryJob.ToString();
				switch(sJmssJobQInfo.EntryStatus) 
				{
					case (int)QueStatus.EntryStatus.JMSS_JOBQUEENTSTS_NORMAL:
						tBEntryStatus.Text = "o^\Wu90%ȉ";
						break;
					case (int)QueStatus.EntryStatus.JMSS_JOBQUEENTSTS_WARNING:
						tBEntryStatus.Text = "o^\Wu90%𒴂Ă";
						break;
					case (int)QueStatus.EntryStatus.JMSS_JOBQUEENTSTS_ERROR:
						tBEntryStatus.Text = "o^\WuɒBĂ";
						break;
					default:
						tBEntryStatus.Text = "sł";
						break;
				}
			}
			else
			{
				MessageBox.Show("G[R[h:" + dwRet.ToString() + "(0x" + dwRet.ToString("X") + ")" ,
					"G[" ,
					MessageBoxButtons.OK);
			}
		}

		
		/// <summary>
		/// CxgMpĺuvύXꂽ̏łB
		/// </summary>
		private void cbReceiveEventInfinite_CheckedChanged(object sender, System.EventArgs e)
		{
			if (cbReceiveEventInfinite.Checked == true)
				tbReceiveEventTimeout.Enabled = false;
			else 
				tbReceiveEventTimeout.Enabled = true;
		}
	}
}
