Пример #1
0
        protected void btnConfirm_Click1(object sender, EventArgs e)
        {
            Facade.IJob           facJob = new Facade.Job();
            Entities.FacadeResult result = null;

            result = facJob.AttachMultipleDestinations(_jobId, ucMultiDestination.SelectedMultiTrunk, _endInstruction, ucMultiDestination.ArrivalDateTime, _lastUpdateDate, ucMultiDestination.UseDriver, ucMultiDestination.UseVehicle, user.IdentityId, user.UserName);

            if (result.Success)
            {
                Cache.Remove(jobEntityForJobId + this._jobId.ToString());
                this.ReturnValue = "refresh";
                this.Close();
            }
            else
            {
                infrigementDisplay.Infringements = result.Infringements;
                infrigementDisplay.DisplayInfringments();
            }
        }