Example #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            listBox1.Items.Clear();
            ManageCompositeRole conn = new ManageCompositeRole();

            conn.OperationStatus += new LogEventHandler(conn_operationStatus);
            conn.CompleteStatus  += new CompleteEventHandler(conn_CompleteStatus);
            conn.ErrorStatus     += conn_ErrorStatus;

            conn.Operation = (Operations)Enum.Parse(typeof(Operations), (cmbActions.SelectedItem as DataRowView).Row[0].ToString());
            //if (radioButton1.Checked)
            //    conn.Operation = Operations.NewSingle;
            //if (radioButton2.Checked)
            //    conn.Operation = Operations.RenameRole;
            //if (radioButton3.Checked)
            //    conn.Operation = Operations.DelRoleToComposite;
            //if (radioButton4.Checked)
            //    conn.Operation = Operations.AddRoleToComposite;
            //if (radioButton5.Checked)
            //    conn.Operation = Operations.NewComposite;
            //if (radioButton6.Checked)
            //    conn.Operation = Operations.DelTCodes;
            //if (radioButton7.Checked)
            //    conn.Operation = Operations.AddTCodes;
            //if (radioButton8.Checked)
            //    conn.Operation = Operations.DeleteRole;

            if (conn.Operation == null)
            {
                MessageBox.Show("Seleziona un'operazione");
                return;
            }

            proxy.AppServerHost = textBox6.Text;
            proxy.SAPRouter     = textBox8.Text;
            proxy.SystemNumber  = textBox3.Text;
            proxy.Client        = textBox5.Text;
            proxy.User          = textBox4.Text;
            proxy.Password      = textBox1.Text;
            proxy.Language      = textBox2.Text;
            this.Cursor         = Cursors.WaitCursor;
            conn.Login(proxy);
            conn.DoOnCompositeRoles(textBox7.Text);
            conn.Disconnect();
            this.Cursor = this.DefaultCursor;
        }
Example #2
0
 public SapRsparam(ProxyParameter param)
 {
     this.connect = new ManageCompositeRole();
     this.connect.Login(param);
 }
Example #3
0
 public SAPImportHelper(ProxyParameter param)
 {
     this.connect = new ManageCompositeRole();
     this.connect.Login(param);
 }