Exemple #1
0
        protected void GetEmployee_Click(object sender, EventArgs e)
        {
            ETBOSSService.ETBOSSServiceClient client   = new ETBOSSService.ETBOSSServiceClient("BasicHttpBinding_IETBOSSService");
            ETBOSSService.Employee            employee = client.GetEmployee(Convert.ToInt32(txtID.Text));
            txtID.Text   = employee.Id.ToString();
            txtName.Text = employee.Name;
            txtDob.Text  = employee.Dob.ToString();

            Label1.Text = "Get employee done.";
        }
Exemple #2
0
        protected void SaveEmployee_Click(object sender, EventArgs e)
        {
            ETBOSSService.ETBOSSServiceClient client = new ETBOSSService.ETBOSSServiceClient("BasicHttpBinding_IETBOSSService");



            ETBOSSService.Employee employee = new ETBOSSService.Employee();
            employee.Id   = Convert.ToInt32(txtID.Text);
            employee.Name = txtName.Text;
            employee.Dob  = Convert.ToDateTime(txtDob.Text);

            client.SaveEmployee(employee);

            Label1.Text = "Save employee done.";
        }
Exemple #3
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     ETBOSSService.ETBOSSServiceClient client = new ETBOSSService.ETBOSSServiceClient("BasicHttpBinding_IETBOSSService");
     Label1.Text = client.GetCustomerName(TextBox1.Text);
 }