コード例 #1
0
 public MaterialTrackingStartPage(YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatchCollection materialTrackingBatchCollection)
 {
     this.m_MaterialTrackingBatchCollection = materialTrackingBatchCollection;
     InitializeComponent();
     this.DataContext = this;
     this.Loaded += MaterialTrackingStartPage_Loaded;
 }
コード例 #2
0
 public MaterialTrackingStartPage(YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatchCollection materialTrackingBatchCollection)
 {
     this.m_MaterialTrackingBatchCollection = materialTrackingBatchCollection;
     InitializeComponent();
     this.DataContext = this;
     this.Loaded     += MaterialTrackingStartPage_Loaded;
 }
コード例 #3
0
        public MaterialTrackingStartPage(YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatchCollection materialTrackingBatchCollection, string masterAccessionNo)
        {
            this.m_MaterialTrackingBatchCollection = materialTrackingBatchCollection;
            this.m_UseMasterAccessionNo            = true;
            this.m_MasterAccessionNo = masterAccessionNo;

            InitializeComponent();
            this.DataContext = this;
            this.Loaded     += MaterialTrackingStartPage_Loaded;
        }
コード例 #4
0
        private void ButtonCreateBatch_Click(object sender, RoutedEventArgs e)
        {
            MaterialTrackingBatchDialog materialTrackingBatchDialog = new MaterialTrackingBatchDialog();
            bool?result = materialTrackingBatchDialog.ShowDialog();

            if (result.HasValue && result.Value == true)
            {
                this.m_MaterialTrackingBatchCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialTrackingBatchCollection();
                NotifyPropertyChanged("MaterialTrackingBatchCollection");
            }
        }
コード例 #5
0
        public MaterialTrackingStartPage(YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatchCollection materialTrackingBatchCollection, string masterAccessionNo)
        {
            this.m_MaterialTrackingBatchCollection = materialTrackingBatchCollection;
            this.m_UseMasterAccessionNo = true;
            this.m_MasterAccessionNo = masterAccessionNo;

            InitializeComponent();
            this.DataContext = this;

            this.Loaded += MaterialTrackingStartPage_Loaded;
        }
コード例 #6
0
        public MaterialTrackingDialog()
        {
            this.m_SystemIdentity = Business.User.SystemIdentity.Instance;

            this.m_AccessionSlideOrderViewCollection = new Business.View.AccessionSlideOrderViewCollection();
            this.m_MaterialLocationCollection        = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialLocationCollection();
            this.m_MaterialTrackingBatchCollection   = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialTrackingBatchCollection();

            this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance;
            this.m_BarcodeScanPort.HistologySlideScanReceived += HistologySlideScanReceived;
            this.m_SlideTrackingLogCollection = new YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection();

            this.Closing += new CancelEventHandler(MaterialTrackingDialog_Closing);
            InitializeComponent();
            DataContext = this;
        }
コード例 #7
0
        public MaterialTrackingDialog()
        {
            this.m_SystemIdentity = Business.User.SystemIdentity.Instance;

            this.m_AccessionSlideOrderViewCollection = new Business.View.AccessionSlideOrderViewCollection();
            this.m_MaterialLocationCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialLocationCollection();
            this.m_MaterialTrackingBatchCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialTrackingBatchCollection();

            this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance;
            this.m_BarcodeScanPort.HistologySlideScanReceived += HistologySlideScanReceived;
            this.m_SlideTrackingLogCollection = new YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection();

            this.Closing += new CancelEventHandler(MaterialTrackingDialog_Closing);
            InitializeComponent();
            DataContext = this;
        }
コード例 #8
0
        private void ShowMaterialTrackingStartPage()
        {
            YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatchCollection materialTrackingBatchCollection = null;
            MaterialTrackingStartPage materialTrackingStartPage = null;

            if (this.m_UseMasterAccessionNo == true)
            {
                materialTrackingBatchCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialTrackingBatchCollectionByMasterAccessionNo(this.m_MasterAccessionNo);
                materialTrackingStartPage       = new MaterialTrackingStartPage(materialTrackingBatchCollection, this.m_MasterAccessionNo);
            }
            else
            {
                materialTrackingBatchCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialTrackingBatchCollection();
                materialTrackingStartPage       = new MaterialTrackingStartPage(materialTrackingBatchCollection);
            }

            materialTrackingStartPage.ViewBatch += new MaterialTrackingStartPage.ViewBatchEventHandler(MaterialTrackingStartPage_ViewBatch);
            this.m_LoginPageWindow.PageNavigator.Navigate(materialTrackingStartPage);
        }
コード例 #9
0
 private static YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatchCollection BuildMaterialTrackingBatchCollection(SqlCommand cmd)
 {
     YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatchCollection materialTrackingBatchCollection = new YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatchCollection();
     using (SqlConnection cn = new SqlConnection(Properties.Settings.Default.ProductionConnectionString))
     {
         cn.Open();
         cmd.Connection = cn;
         using (SqlDataReader dr = cmd.ExecuteReader())
         {
             while (dr.Read())
             {
                 YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatch materialTrackingBatch = new YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatch();
                 YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter propertyWriter = new Persistence.SqlDataReaderPropertyWriter(materialTrackingBatch, dr);
                 propertyWriter.WriteProperties();
                 materialTrackingBatchCollection.Add(materialTrackingBatch);
             }
         }
     }
     return materialTrackingBatchCollection;
 }
コード例 #10
0
 private static YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatchCollection BuildMaterialTrackingBatchCollection(SqlCommand cmd)
 {
     YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatchCollection materialTrackingBatchCollection = new YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatchCollection();
     using (SqlConnection cn = new SqlConnection(Properties.Settings.Default.ProductionConnectionString))
     {
         cn.Open();
         cmd.Connection = cn;
         using (SqlDataReader dr = cmd.ExecuteReader())
         {
             while (dr.Read())
             {
                 YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatch materialTrackingBatch = new YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatch();
                 YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter      propertyWriter        = new Persistence.SqlDataReaderPropertyWriter(materialTrackingBatch, dr);
                 propertyWriter.WriteProperties();
                 materialTrackingBatchCollection.Add(materialTrackingBatch);
             }
         }
     }
     return(materialTrackingBatchCollection);
 }
コード例 #11
0
 private void ButtonCreateBatch_Click(object sender, RoutedEventArgs e)
 {
     MaterialTrackingBatchDialog materialTrackingBatchDialog = new MaterialTrackingBatchDialog();
     bool? result = materialTrackingBatchDialog.ShowDialog();
     if (result.HasValue && result.Value == true)
     {
         this.m_MaterialTrackingBatchCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialTrackingBatchCollection();
         NotifyPropertyChanged("MaterialTrackingBatchCollection");
     }
 }