예제 #1
0
 public void updateAcount()
 {
     float salary = float.Parse(txtEmpSalary.Text);
     int hourswork = int.Parse(txtEmpHoursWork.Text);
     int mgrid = int.Parse(txtEmpMgrID.Text);
     int id = int.Parse(txtEmpCode.Text);
     bool status = false;
     if (rdoPriceRange.SelectedValue.Equals("True"))
     {
         status = true;
     }
     else
     {
         status = false;
     }
     CSMSService.CSMSWebservice CSMSService = new CSMSService.CSMSWebservice();
     CSMSService.AdminUpdateAccount(id, txtEmpName.Text, txtEmpUsername.Text, txtEmpPassword.Text,
         txtEmpRole.Text, txtEmpSex.Text, txtEmpBrithdate.Text, txtEmpHiredate.Text, txtEmpAddress.Text,
         txtEmpPhone.Text, txtEmpCity.Text, txtEmpCountry.Text, salary, hourswork, mgrid, status);
 }
예제 #2
0
    public void updateAcount()
    {
        float salary    = float.Parse(txtEmpSalary.Text);
        int   hourswork = int.Parse(txtEmpHoursWork.Text);
        int   mgrid     = int.Parse(txtEmpMgrID.Text);
        int   id        = int.Parse(txtEmpCode.Text);
        bool  status    = false;

        if (rdoPriceRange.SelectedValue.Equals("True"))
        {
            status = true;
        }
        else
        {
            status = false;
        }
        CSMSService.CSMSWebservice CSMSService = new CSMSService.CSMSWebservice();
        CSMSService.AdminUpdateAccount(id, txtEmpName.Text, txtEmpUsername.Text, txtEmpPassword.Text,
                                       txtEmpRole.Text, txtEmpSex.Text, txtEmpBrithdate.Text, txtEmpHiredate.Text, txtEmpAddress.Text,
                                       txtEmpPhone.Text, txtEmpCity.Text, txtEmpCountry.Text, salary, hourswork, mgrid, status);
    }
예제 #3
0
        public void UpdateAccount()
        {
            CSMSService.CSMSWebservice CSMSService = new CSMSService.CSMSWebservice();
            bool status = rbtStatus.SelectedValue == "Available" ? true : false;

            CSMSService.AdminUpdateAccount(int.Parse(txtEmpID.Text),
                                           txtEmpName.Text,
                                           txtEmpUsername.Text,
                                           txtEmpPassword.Text,
                                           DropDownList1.SelectedValue,
                                           rbtSex.SelectedValue,
                                           txtEmpBirthdate.Text,
                                           txtEmpHiredate.Text,
                                           txtEmpAddress.Text,
                                           txtEmpPhone.Text,
                                           txtEmpCity.Text,
                                           txtEmpCountry.Text,
                                           float.Parse(txtEmpSalary.Text),
                                           int.Parse(txtEmpHourWork.Text),
                                           int.Parse(txtEmpMgrID.Text),
                                           status);
        }
예제 #4
0
 public void UpdateAccount()
 {
     CSMSService.CSMSWebservice CSMSService = new CSMSService.CSMSWebservice();
     bool status = rbtStatus.SelectedValue == "Available" ? true : false;
     CSMSService.AdminUpdateAccount(int.Parse(txtEmpID.Text),
                                     txtEmpName.Text,
                                     txtEmpUsername.Text,
                                     txtEmpPassword.Text,
                                     DropDownList1.SelectedValue,
                                     rbtSex.SelectedValue,
                                     txtEmpBirthdate.Text,
                                     txtEmpHiredate.Text,
                                     txtEmpAddress.Text,
                                     txtEmpPhone.Text,
                                     txtEmpCity.Text,
                                     txtEmpCountry.Text,
                                     float.Parse(txtEmpSalary.Text),
                                     int.Parse(txtEmpHourWork.Text),
                                     int.Parse(txtEmpMgrID.Text),
                                     status);
 }