Ejemplo n.º 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);
            }
        }
        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);
            }
        }
Ejemplo n.º 3
0
 private void IdocMetaToolStripMenuItem_Click(object sender, EventArgs e)
 {
     m_FormIdocMeta = new FormIdocMeta();
     m_FormIdocMeta.Show(dockPanel);
 }
 private void btnIdocMeta_Click(object sender, EventArgs e)
 {
     Idocs.FormIdocMeta formidocmeta = new FormIdocMeta();
     formidocmeta.Show();
 }