예제 #1
0
        //钢种
        private void GetStlGrd()
        {
            DataTable dt = tb_matrl_main.GetStlGrd(txtstlgrd.Text).Tables[0];

            if (dt.Rows.Count > 0)
            {
                rptList.DataSource = dt;
                rptList.DataBind();
            }
            else
            {
                rptList.DataSource = null;
                rptList.DataBind();
            }
        }
예제 #2
0
        private void GetStlGrd()
        {
            DataTable dt = new DataTable();

            if (dropType.SelectedItem.Value == "0")
            {
                dt = tb_matrl_main.GetStlGrd(txtmatcode.Text, txtstlgrd.Text, tstspec.Text).Tables[0];
            }
            else
            {
                dt = tb_matrl_main.GetGP_StlGrd(txtmatcode.Text, txtstlgrd.Text, tstspec.Text).Tables[0];
            }
            if (dt.Rows.Count > 0)
            {
                rptList.DataSource = dt;
                rptList.DataBind();
            }
            else
            {
                rptList.DataSource = null;
                rptList.DataBind();
            }
        }