示例#1
0
        private void Properties()
        {
            FIA_Biosum_Manager.RxItem_Collection oRxColl = new RxItem_Collection();


            frmMain.g_sbpInfo.Text = "Creating Rx Package Properties Report...Stand By";
            for (int x = 0; x <= ReferenceRxItemCollection.Count - 1; x++)
            {
                if (ReferenceRxItemCollection.Item(x).Delete == false)
                {
                    if (this.m_oRxPackageItem.SimulationYear1Rx.Trim() ==
                        ReferenceRxItemCollection.Item(x).RxId.Trim() ||
                        this.m_oRxPackageItem.SimulationYear2Rx.Trim() ==
                        ReferenceRxItemCollection.Item(x).RxId.Trim() ||
                        this.m_oRxPackageItem.SimulationYear3Rx.Trim() ==
                        ReferenceRxItemCollection.Item(x).RxId.Trim() ||
                        this.m_oRxPackageItem.SimulationYear4Rx.Trim() ==
                        ReferenceRxItemCollection.Item(x).RxId.Trim())
                    {
                        RxItem oItem = new RxItem();
                        oItem.CopyProperties(ReferenceRxItemCollection.Item(x), oItem);
                        if (oItem.m_oFvsCommandItem_Collection1 != null)
                        {
                            for (int y = 0; y <= oItem.m_oFvsCommandItem_Collection1.Count - 1; y++)
                            {
                                if (oItem.m_oFvsCommandItem_Collection1.Item(y).Delete == true)
                                {
                                    oItem.m_oFvsCommandItem_Collection1.Remove(y);
                                }
                            }
                        }
                        oRxColl.Add(oItem);
                    }
                }
            }

            FIA_Biosum_Manager.RxPackageItem_Collection oRxPackageCollection = new RxPackageItem_Collection();
            oRxPackageCollection.Add(this.m_oRxPackageItem);

            FIA_Biosum_Manager.frmDialog frmTemp = new frmDialog();
            frmTemp.Text       = "FIA Biosum";
            frmTemp.AutoScroll = false;
            uc_textbox uc_textbox1 = new uc_textbox();

            frmTemp.Controls.Add(uc_textbox1);
            uc_textbox1.Dock          = DockStyle.Fill;
            uc_textbox1.lblTitle.Text = "Package Properties";
            RxTools oRxTools = new RxTools();

            uc_textbox1.TextValue = oRxTools.PackageProperties(oRxPackageCollection, oRxColl);
            frmTemp.Show();

            frmMain.g_sbpInfo.Text = "Ready";
        }
示例#2
0
        private void Properties()
        {
            if (this.m_oRxItem.RxId.Trim().Length == 0)
            {
                return;
            }
            frmMain.g_sbpInfo.Text = "Creating Rx Properties Report...Stand By";
            FIA_Biosum_Manager.RxItem_Collection oRxCollection = new RxItem_Collection();
            FIA_Biosum_Manager.RxItem            oRxItem       = new RxItem();

            oRxItem.CopyProperties(m_oRxItem, oRxItem);



            if (oRxItem.m_oFvsCommandItem_Collection1 != null)
            {
                for (int y = 0; y <= oRxItem.m_oFvsCommandItem_Collection1.Count - 1; y++)
                {
                    if (oRxItem.m_oFvsCommandItem_Collection1.Item(y).Delete == true)
                    {
                        oRxItem.m_oFvsCommandItem_Collection1.Remove(y);
                    }
                }
            }

            oRxCollection.Add(oRxItem);
            FIA_Biosum_Manager.frmDialog frmTemp = new frmDialog();
            frmTemp.Text       = "FIA Biosum";
            frmTemp.AutoScroll = false;
            uc_textbox uc_textbox1 = new uc_textbox();

            frmTemp.Controls.Add(uc_textbox1);
            uc_textbox1.Dock          = DockStyle.Fill;
            uc_textbox1.lblTitle.Text = "Treatment Properties";
            RxTools oRxTools = new RxTools();

            uc_textbox1.TextValue = oRxTools.TreatmentProperties(oRxCollection);
            frmTemp.Show();
            frmMain.g_sbpInfo.Text = "Ready";
        }