Exemple #1
0
 private void ucEmployeeSelectGrid1_EmployeeSelected(Baumax.Domain.Employee empl)
 {
     if (empl != null)
     {
         DialogResult = DialogResult.OK;
     }
 }
Exemple #2
0
 public void DisplayWorldData(Baumax.Dao.QueryResult.StoreWorldDetail detail)
 {
     lbAvailableWorkTime.Text = detail.AvailableWorkTimeHours.ToString();
     lbBenchmarkBusinessVolume.Text = detail.BenchmarkPerfomance.ToString();
     lbBenchmarkHours.Text = detail.BusinessVolumeHours.ToString(); /////////////no
     lbBussinessVolumeHours.Text = detail.BusinessVolumeHours.ToString();
     lbCurrentlyAvailableBuffer.Text = detail.AvailableBufferHours.ToString();
     
     lbEstimatedBusinessVolume.Text = detail.TargetedBusinessVolume.ToString();
     lbNetBusinessVolume.Text = detail.NetBusinessVolume1.ToString();
     lbNetBusinessVolumeWithout.Text = detail.NetBussinessVolume2.ToString();
     lbWorld.Text = ClientEnvironment.StoreToWorldService.FindById(detail.StoreWorldId).WorldName;
 }
Exemple #3
0
        public bool FireAssignEmployee(Baumax.Domain.Employee entity)
        {
            Debug.Assert(entity != null);
            Debug.Assert(ExtEmployee != null);
            Debug.Assert(AssignState != null);

            if (QuestionMessageYes(GetLocalized("QuestionAssignExternalEmployee")))
            {

                try
                {
                    ClientEnvironment.EmployeeService.Merge(entity.ID, ExtEmployee.ID);

                    AssignState.ToEmployee = entity;

                    if (this.Parent is XtraForm)
                    {
                        (this.Parent as XtraForm).DialogResult = DialogResult.OK;
                    }
                    return true;
                }
                catch (EmployeeMergeException ex)
                {
                    if (ex.EmployeeMergeError == EmployeeMergeError.CantMerge)
                    {
                        ErrorMessage(GetLocalized("ErrorCantMergeEmployees"));
                    }
                    else
                    {
                        ProcessEntityException(ex);
                    }
                    return false;
                }
            }
            return false;
        }
Exemple #4
0
 private void EstimateComplete(object sender, Baumax.Contract.OperationCompleteEventArgs e)
 {
     Interlocked.Increment(ref _Completed);
     ChangeState();
 }