コード例 #1
0
        private void bt_tjdw_Click(object sender, EventArgs e)
        {
            Form_tjdw frm = new Form_tjdw();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                txt_tjdw.Text = frm.str_tjdwmc;
                txt_tjdw.Tag  = frm.str_tjdwid;

                cmb_fz.DataSource    = tjglbiz.Get_tj_dwfz_hd(frm.str_tjdwid);
                cmb_fz.DisplayMember = "mc";
                cmb_fz.ValueMember   = "bh";
                cmb_fz.SelectedIndex = -1;
            }
        }
コード例 #2
0
ファイル: Form_zhxmlr.cs プロジェクト: wangronghua/PEIS_Autoz
        private void Form_zhxmlr_Load(object sender, EventArgs e)
        {
            new Common.Common().AddImages(imageList1);
            tv_tjlxb.ImageList = imageList1;

            lv_tc.SmallImageList = imageList1;
            lv_tc.StateImageList = imageList1;
            lv_tc.LargeImageList = imageList1;


            lv_fz.SmallImageList = imageList1;
            lv_fz.StateImageList = imageList1;
            lv_fz.LargeImageList = imageList1;

            lv_uncheckxm.SmallImageList = imageList1;
            lv_uncheckxm.StateImageList = imageList1;
            lv_uncheckxm.LargeImageList = imageList1;

            lv_checkxm.SmallImageList = imageList1;
            lv_checkxm.StateImageList = imageList1;
            lv_checkxm.LargeImageList = imageList1;


            lv_checkxm.Items.Clear();
            lv_checkxm.View = View.SmallIcon;
            foreach (DataRow dr in dt_tj_tc_dt.Rows)
            {
                ListViewItem item = new ListViewItem();
                item.Tag        = dr["zhxm"].ToString().Trim();
                item.Text       = dr["mc"].ToString().Trim();
                item.ImageIndex = 2;
                lv_checkxm.Items.Add(item);
            }

            lv_tc.Items.Clear();
            lv_tc.View = View.Tile;
            DataTable dt_tj_tc_hd = ywszbiz.Get_tj_tc_hd();

            foreach (DataRow dr in dt_tj_tc_hd.Rows)
            {
                ListViewItem item = new ListViewItem();
                item.Tag        = dr["bh"].ToString().Trim();
                item.Text       = dr["mc"].ToString().Trim();
                item.ImageIndex = 5;
                lv_tc.Items.Add(item);
            }
            lv_fz.Items.Clear();
            lv_fz.View = View.SmallIcon;
            DataTable dt_tj_dwfz_hd = tjglbiz.Get_tj_dwfz_hd(str_dwbh);

            foreach (DataRow dr in dt_tj_dwfz_hd.Rows)
            {
                ListViewItem item = new ListViewItem();
                item.Tag        = dr["bh"].ToString().Trim();
                item.Text       = dr["mc"].ToString().Trim();
                item.ImageIndex = 4;
                lv_fz.Items.Add(item);
            }

            tv_tjlxb.Nodes.Clear();
            TreeNode node = new TreeNode("体检科室");

            node.Tag = "00";
            DataTable dt = ywszbiz.Get_tj_tjlxb();

            foreach (DataRow dr in dt.Rows)
            {
                TreeNode node1 = new TreeNode(dr["mc"].ToString());
                node1.Tag = dr["lxbh"].ToString();
                node.Nodes.Add(node1);
            }
            tv_tjlxb.Nodes.Add(node);
            new Common.Common().AddImage(node);
            tv_tjlxb.ExpandAll();

            dt_tj_zhxm_hd = ywszbiz.Get_tj_zhxm_hd();
        }