예제 #1
0
        private void tv_jyzhxm_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (object.Equals(e.Node.Tag, null))
            {
                return;
            }
            txt_zhxmmc.Text = e.Node.Text;
            txt_zhxmbh.Text = e.Node.Tag.ToString();

            DataTable dt = lisbiz.Get_TJ_JGZHXMDZB(e.Node.Tag.ToString());

            if (dt.Rows.Count > 0)
            {
                txt_jyzhbh.Text          = dt.Rows[0]["GJC"].ToString();
                txt_sm.Text              = dt.Rows[0]["SM"].ToString().Trim();
                cmb_jydyxz.SelectedValue = dt.Rows[0]["SBID"].ToString();
            }
            else
            {
                txt_jyzhbh.Text          = "";
                txt_sm.Text              = "";
                cmb_jydyxz.SelectedValue = -1;
            }
        }