コード例 #1
0
ファイル: MKT153.aspx.cs プロジェクト: ChiangHanLung/PIC_VDS
    }//databind_Mst

    /// <summary>
    /// 繫結資料 DTL
    /// </summary>
    private void databind_Dtl()
    {
        #region
        try
        {
            ErrorMsgLabel.Text = "";
            BCO.MaintainChainGiftDtl bco = new BCO.MaintainChainGiftDtl(ConnectionDB);

            ParameterList.Clear();

            ParameterList.Add(this.hiddenID.Value);

            DataTable dt = bco.QueryChainGiftDetlByPID(ParameterList);

            #region 將明細資料放至Session["MKT153_DTL_" + PageTimeStamp.Value]中
            Session["MKT153_DTL_" + PageTimeStamp.Value] = dt;


            #endregion

            #region 保存 舊明細資料至 Session["MKT153_OLDDTL_" + PageTimeStamp.Value]中
            Session["MKT153_OLDDTL_" + PageTimeStamp.Value] = dt.Copy();
            #endregion

            this.GridView1.DataSource = dt;
            this.GridView1.PageIndex = 0;
            this.GridView1.DataBind();


        }
        catch (Exception ex)
        {
            ErrorMsgLabel.Text = ex.Message;
        }
        #endregion
    }//databind_Dtl