コード例 #1
0
        private void btnCreateIdoc_Click(object sender, EventArgs e)
        {
            m_SapSystemName   = this.cboxSystemList1.Text.Trim();
            m_IdocType        = this.txtIdocType.Text;
            m_IdocEnhanceMent = this.txtEnhancement.Text;


            if (string.IsNullOrEmpty(m_SapSystemName))
            {
                MessageBox.Show("请选择SAP系统");
                return;
            }
            if (string.IsNullOrEmpty(m_IdocType))
            {
                MessageBox.Show("请选择Idoc类型");
                return;
            }

            SAPConnection connection = new SAPConnection(m_SapSystemName);

            Idoc = connection.CreateIdoc(m_IdocType, m_IdocEnhanceMent);
            IdocToTreeControl();
        }