コード例 #1
0
        private void selDrugClass(int _index, bool _isItem)
        {
            WinListFind list = new WinListFind();

            list.Owner = this;
            list.Title = "药品分类";
            list.init(SQL.SEL_MEDCLASS,
                      delegate(object _sel)
            {
                if (null != _sel)
                {
                    setCondition("class", (BLPublic.CodeNameItem)_sel, _index, _isItem);
                }
            });
            list.Show();
        }
コード例 #2
0
        private void miICD_Click(object sender, RoutedEventArgs e)
        {
            WinListFind list = new WinListFind();

            list.Owner = this;
            list.Title = "诊断选择";
            list.init(SQL.SEL_DIG,
                      delegate(object _sel)
            {
                if (null != _sel)
                {
                    setCondition("icd", (BLPublic.CodeNameItem)_sel, getMenuIndex(sender), true);
                }
            });
            list.Show();
        }
コード例 #3
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            WinListFind list = new WinListFind();

            list.Owner = this;
            list.Title = "TPN项目";
            list.init(SQL.SEL_TPNTEIM_SEL,
                      delegate(object _sel)
            {
                if (null != _sel)
                {
                    BLPublic.CodeNameItem item = (BLPublic.CodeNameItem)_sel;
                    this.tblMonitor.Rows.Add(new object[] { (this.tblMonitor.Rows.Count + 1) * -1,
                                                            item.Code, 0, "", false, false, false, 0,
                                                            AppConst.LoginEmpCode, DateTime.Now, item.Name, "" });
                }
            });
            list.Show();
        }
コード例 #4
0
        private void btnSelItem_Click(object sender, RoutedEventArgs e)
        {
            WinListFind list = new WinListFind();

            list.Owner = this;
            list.Title = "TPN项目";
            list.init(SQL.SEL_TPNTEIM_SEL,
                      delegate(object _sel)
            {
                if (null != _sel)
                {
                    BLPublic.CodeNameItem item = (BLPublic.CodeNameItem)_sel;
                    DataRow r = this.tblMonitor.Rows.Find(((Button)sender).Tag.ToString());
                    if (null != r)
                    {
                        r["TPNItemID"] = item.Code;
                        r["ItemName"]  = item.Name;
                    }
                }
            });
            list.Show();
        }
コード例 #5
0
        private void btnSelDrug_Click(object sender, RoutedEventArgs e)
        {
            WinListFind list = new WinListFind();

            list.Owner = this;
            list.Title = "药品";
            list.init(SQL.SEL_PREP,
                      delegate(object _sel)
            {
                if (null != _sel)
                {
                    BLPublic.CodeNameItem item = (BLPublic.CodeNameItem)_sel;
                    DataRow r = this.tblMonitor.Rows.Find(((Button)sender).Tag.ToString());
                    if (null != r)
                    {
                        r["UniPreparationID"] = item.Code;
                        r["Drug"]             = item.Name;
                    }
                }
            });
            list.Show();
        }