Пример #1
0
        private void barButtonItemSave_ItemClick(object sender, ItemClickEventArgs e)
        {
            int[] selectedRows = gridView1.GetSelectedRows();

            List <int> selectedItems =
                selectedRows.Select(i => (gridView1.GetRow(i) as LaboratoryRequestType).Id).ToList();

            LaboratoryRequestItem[] requestItems = selectedItems.Select(item => new LaboratoryRequestItem
            {
                LaboratoryRequestId     = 0,
                LaboratoryRequestTypeId = item
            }).ToArray();

            Extensions.Extensions.ShowWaitForm(description: "Laboratuvar isteği kaydediliyor...");

            LaboratoryRequestSolClient client  = Extensions.Extensions.GetLaboratoryRequest();
            LaboratoryRequest          request = new LaboratoryRequest
            {
                ExaminationId          = examinationId,
                IsActive               = true,
                LaboratoryRequestItems = requestItems
            };

            Result = client.Insert(request);

            SplashScreenManager.CloseForm(false);

            Extensions.Extensions.ProcessResultMessage("Laboratuvar isteği oluşturma", Result);
            Close();
        }
Пример #2
0
        private void bindingSourceLabResult_CurrentChanged(object sender, EventArgs e)
        {
            LaboratoryRequest laboratoryRequest =
                bindingSourceLabResult.Current as LaboratoryRequest;

            if (laboratoryRequest.IsNull())
            {
                bindingSourceItems.DataSource = null;
                return;
            }
            LaboratoryRequestItemSolClient client =
                Extensions.Extensions.GetLaboratoryRequestItem();

            bindingSourceItems.DataSource = client.LaboratoryRequestItems(laboratoryRequest.Id);
            client.Close();
        }
Пример #3
0
        private void bindingSourceLabRequests_CurrentChanged(object sender, EventArgs e)
        {
            if (opensplash)
            {
                Extensions.Extensions.ShowWaitForm();
            }
            LaboratoryRequest laboratoryRequest = bindingSourceLabRequests.Current as LaboratoryRequest;

            if (laboratoryRequest.IsNull())
            {
                bindingSourceResults.DataSource = null;
                return;
            }
            LaboratoryRequestItemSolClient client =
                Extensions.Extensions.GetLaboratoryRequestItem();

            bindingSourceResults.DataSource = client.LaboratoryRequestItems(laboratoryRequest.Id);
            client.Close();
            gridControlLabResults.Refresh();
            if (opensplash)
            {
                SplashScreenManager.CloseForm(false);
            }
        }