コード例 #1
0
        private void btnDecombileIdoc_Click(object sender, EventArgs e)
        {
            try
            {
                if (idocdb == null)
                {
                    idocdb = new IdocDb(this.cbxDbConnection.Text);
                }
                else
                {
                    SAPINT.Idocs.Idoc idoc = idocdb.ReadIdoc(this.txtIdocNumber.Text, this.cbxSapSystem.Text);
                    if (idoc != null)
                    {
                        FormIdocMeta formIdocMeta = new FormIdocMeta();

                        formIdocMeta.SapSystemName = this.cbxSapSystem.Text;
                        formIdocMeta.Idoc          = idoc;

                        formIdocMeta.IdocToTreeControl();
                        formIdocMeta.DtStatus = idocdb.IdocStatus;
                        formIdocMeta.Show();
                    }
                    else
                    {
                        MessageBox.Show("无法解析IDOC" + this.txtIdocNumber.Text);
                    }
                }
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message);
            }
        }
コード例 #2
0
        private void btnDecombileIdoc_Click(object sender, EventArgs e)
        {
            try
            {
                if (idocdb == null)
                {
                    idocdb = new IdocDb(this.cbxDbConnection.Text);
                }
                else
                {
                    SAPINT.Idocs.Idoc idoc = idocdb.ReadIdoc(this.txtIdocNumber.Text, this.cbxSapSystem.Text);
                    if (idoc != null)
                    {
                        FormIdocMeta formIdocMeta = new FormIdocMeta();

                        formIdocMeta.SapSystemName = this.cbxSapSystem.Text;
                        formIdocMeta.Idoc = idoc;

                        formIdocMeta.IdocToTreeControl();
                        formIdocMeta.DtStatus = idocdb.IdocStatus;
                        formIdocMeta.Show();
                    }
                    else
                    {
                        MessageBox.Show("无法解析IDOC" + this.txtIdocNumber.Text);
                    }

                }

            }
            catch (Exception exception)
            {

                MessageBox.Show(exception.Message);
            }
        }
コード例 #3
0
 private void IdocMetaToolStripMenuItem_Click(object sender, EventArgs e)
 {
     m_FormIdocMeta = new FormIdocMeta();
     m_FormIdocMeta.Show(dockPanel);
 }
コード例 #4
0
 private void btnIdocMeta_Click(object sender, EventArgs e)
 {
     Idocs.FormIdocMeta formidocmeta = new FormIdocMeta();
     formidocmeta.Show();
 }