Exemplo n.º 1
0
        private void miDrugIntervene_Click(object sender, RoutedEventArgs e)
        {
            if (null == lbOrders.SelectedItem)
            {
                BLPublic.Dialogs.Alert("请选择医嘱.");
                lbOrders.Focus();
                return;
            }

            //选择药品
            List <object> list = new List <object>();

            foreach (OrdersDrugModel drug in ((OrdersModel)lbOrders.SelectedItem).Drugs)
            {
                list.Add(drug);
            }

            OrdersDrugModel selDrug = null;
            WinList         winLst  = new WinList();

            winLst.Owner = AppConst.winMain;
            winLst.Width = 300;
            winLst.init(list);
            if (true == winLst.ShowDialog())
            {
                selDrug = (OrdersDrugModel)winLst.SelObject;
            }

            if (null == selDrug)
            {
                return;
            }

            if (null == WinCustodyEdit.OnSetObject)
            {
                if (!WinCustodyEdit.TPNCustodyIntervene(this.patient.PatientCode, true,
                                                        (id, objStr, desc) =>
                {
                    this.addIntervene(id, objStr, desc);
                    lbOpRecord.Items.Refresh();
                }))
                {
                    return;
                }
            }


            WinCustodyEdit.OnSetObject(WinInterveneEdit.OBJTYP_DRUG, selDrug.Code, selDrug.Name,
                                       selDrug.Dosage + selDrug.DosageUnit,
                                       Convert.ToDateTime(((OrdersModel)lbOrders.SelectedItem).OrderTime));
        }
Exemplo n.º 2
0
        private void miTPNItem_Click(object sender, RoutedEventArgs e)
        {
            WinList list = new WinList();

            list.Owner = this;
            list.init(this.lstTPNItems, delegate(object _sel)
            {
                if (null != _sel)
                {
                    setCondition("tpn", (BLPublic.CodeNameItem)_sel, getMenuIndex(sender), true);
                }
            });
            list.Show();
        }
Exemplo n.º 3
0
        private void btnModType_Click(object sender, RoutedEventArgs e)
        {
            Button btn = (Button)sender;

            if (null == btn.Tag)
            {
                return;
            }

            if (BLPublic.Dialogs.Yes != BLPublic.Dialogs.Ask("是否确定" + btn.ToolTip.ToString() + "?"))
            {
                return;
            }

            string recipeID = btn.Tag.ToString();
            string oldTyp   = "1";

            DataRow[] rows = this.tblOrders.Select("RecipeID='" + recipeID + "'");
            if (null != rows && 0 < rows.Length)
            {
                oldTyp = rows[0]["OrdersLabel"].ToString();
            }

            if (btn.ToolTip.ToString().Contains("营养"))
            {
                modOrdersType(recipeID, oldTyp, "4");
            }

            else
            {
                List <BLPublic.CodeNameItem> list = new List <BLPublic.CodeNameItem>();
                list.Add(new BLPublic.CodeNameItem("1", "普通"));
                list.Add(new BLPublic.CodeNameItem("2", "抗生素"));
                list.Add(new BLPublic.CodeNameItem("3", "化疗药"));

                WinList winLst = new WinList();
                winLst.Owner = AppConst.winMain;
                winLst.init(list, (obj) =>
                {
                    modOrdersType(recipeID, oldTyp, ((BLPublic.CodeNameItem)obj).Code);
                });
                winLst.Show();
            }
        }
Exemplo n.º 4
0
        private void miTPNType_Click(object sender, RoutedEventArgs e)
        {
            List <BLPublic.CodeNameItem> lstSAF = new List <BLPublic.CodeNameItem>();

            lstSAF.Add(new BLPublic.CodeNameItem("sugar", "葡萄糖"));
            lstSAF.Add(new BLPublic.CodeNameItem("AA", "氨基酸"));
            lstSAF.Add(new BLPublic.CodeNameItem("fat", "脂肪乳"));

            WinList list = new WinList();

            list.Owner = this;
            list.init(lstSAF, delegate(object _sel)
            {
                if (null != _sel)
                {
                    setCondition("tpnsaf", (BLPublic.CodeNameItem)_sel, getMenuIndex(sender), true);
                }
            });
            list.Show();
        }