Ejemplo n.º 1
0
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            SPType    oSPType    = new SPType();
            SPTypeDAL oSPTypeDAL = new SPTypeDAL();

            Result    oResult   = oSPTypeDAL.SearchList(txtSPTypeID.Text, txtDescription.Text, txtDenom.Text, txtReOrderLevel.Text);
            DataTable dtTmpList = null;

            ScriptManager.RegisterStartupScript(this.upSuccess, typeof(string), Constants.POPUP_WINDOW, " HideProgressStatus('ctl00_cphDet_ucSearchSPType_lblProgress') ", true);
            if (oResult.Status)
            {
                dtTmpList = (DataTable)oResult.Return;
                if (dtTmpList.Rows.Count > 0)
                {
                    gvSearchList.DataSource = dtTmpList;
                    gvSearchList.DataBind();
                }
                else
                {
                    gvSearchList.DataSource = null;
                    gvSearchList.DataBind();
                }
            }
            Session[Constants.SES_CONFIG_APPROVE_DATA] = dtTmpList;
        }