예제 #1
0
        void DataBind(string str_tjlx)
        {
            ywszBiz ywszbiz = new ywszBiz();

            if (str_tjlx == "" && str_lclx == "")
            {
                dt = ywszbiz.Get_TJ_SUGGESTION2();
            }
            else if (str_tjlx != "" && str_lclx == "")
            {
                dt = ywszbiz.Get_TJ_SUGGESTION3(str_tjlx);
            }
            else
            {
                dt = ywszbiz.Get_TJ_SUGGESTION1(str_tjlx, str_lclx);
            }
            if (dt.Rows.Count < 1)
            {
                this.ActiveControl = txt_pym;
                return;
            }
            this.dgv_zd.DataSource = dt;
            this.ActiveControl     = dgv_zd;
        }