private void employeeBlock_EmployeeSelected(object source, EmployeeBlockEventArgs e)
 {
     if (e.Emps == null || e.Emps.Length <= 0)
     {
         return;
     }
     _employee            = e.Emps[0];
     textBoxEmployee.Text = _employee.ShortName;
     btnOK.Enabled        = true;
 }
 private void employeeBlock_EmployeeSelected(object source, EmployeeBlockEventArgs e)
 {
     if (e.Emps == null)
     {
         return;
     }
     for (int i = 0; i < e.Emps.Length; i++)
     {
         AddEmployee(e.Emps[i]);
     }
 }
Beispiel #3
0
 private void EmployeeBlockEmployeeSelected(object source, EmployeeBlockEventArgs e)
 {
     if (e.Emps != null && e.Emps.Length > 0)
     {
         Employee = e.Emps[0];
         End(DialogResult.OK);
     }
     else
     {
         End(DialogResult.Cancel);
     }
 }
        private void eb_EmployeeSelected(object source, EmployeeBlockEventArgs e)
        {
            if (e.Emps == null)
            {
                return;
            }

            foreach (Data.Temp.Objects.Employee t in e.Emps)
            {
                AddKey(t.ID.ToString());
            }
        }
        private void employeeBlockSecond_EmployeeSelected(object source, EmployeeBlockEventArgs e)
        {
            if (e.Emps == null)
            {
                return;
            }

            foreach (var t in e.Emps)
            {
                AddKey2(t.ID.ToString());
            }
        }
        private void eb_EmployeeSelected(object source, EmployeeBlockEventArgs e)
        {
            if (e.Emps == null || e.Emps.Length == 0)
            {
                return;
            }

            id          = e.Emps[0].ID;
            label1.Text = id == 0
                              ? Environment.StringResources.GetString("Search_Dialogs_Employee_Message1")
                              : Option.GetItemText(id.ToString());
            End(DialogResult.OK);
        }
Beispiel #7
0
        private void employeeBlock_EmployeeSelected(object source, EmployeeBlockEventArgs e)
        {
            if (e.Emps != null && e.Emps.Length > 0)
            {
                _userId = e.Emps[0].ID;

                if (Environment.CurCultureInfo.TwoLetterISOLanguageName.Equals("ru"))
                {
                    UserName = e.Emps[0].ShortName;
                }
                else
                {
                    UserName = e.Emps[0].ShortEngName;
                }

                employeeBlock.FullText = UserName;

                btnOK.Enabled = _userId != null && _docTypeId != null && _organizationID != null;
            }
        }