Пример #1
0
 public void addAccount()
 {
     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.AdminAddNewAccount(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 addAccount()
    {
        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.AdminAddNewAccount(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 AddAccount()
        {
            CSMSService.CSMSWebservice CSMSService = new CSMSService.CSMSWebservice();
            bool status = rbtStatus_.SelectedValue == "Available" ? true : false;

            CSMSService.AdminAddNewAccount(txtEmpName_.Text,
                                           txtEmpUsername_.Text,
                                           txtEmpPassword_.Text,
                                           DropDownList2.SelectedItem.ToString(),
                                           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 AddAccount()
        {
            CSMSService.CSMSWebservice CSMSService = new CSMSService.CSMSWebservice();
            bool status = rbtStatus_.SelectedValue == "Available" ? true : false;

            CSMSService.AdminAddNewAccount(txtEmpName_.Text,
                                            txtEmpUsername_.Text,
                                            txtEmpPassword_.Text,
                                            DropDownList2.SelectedItem.ToString(),
                                            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);
        }