/// <summary>
        /// 关联变更计划
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnShowMpChange_OnClick(object sender, EventArgs e)
        {
            btnShowMpChange.Visible = false;
            string    chgpid = ((Label)SmartGridView1.Rows[0].FindControl("lblLotNum")).Text.Trim();
            string    sql    = "select * from View_TM_OUTSOURCELIST where OSL_ENGID='" + ViewState["engid"].ToString() + "' and OSL_NEWXUHAO='" + ViewState["xuhao"] + "' and OSL_OUTSOURCECHGNO='" + chgpid + "'";
            DataTable dt     = DBCallCommon.GetDTUsingSqlText(sql);

            SmartGridView2.DataSource = dt;
            SmartGridView2.DataBind();
            if (SmartGridView2.Rows.Count > 0)
            {
                NoDataPanel2.Visible = false;
            }
            else
            {
                NoDataPanel2.Visible = true;
            }
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     SmartGridView2.DataBind();
 }