Example #1
0
    // 繫結資料 Gift
    private void databind_Gift()
    {
        #region
        try
        {
            ErrorMsgLabel.Text = "";
            MaintainPurchaseOrder bco = new MaintainPurchaseOrder(ConntionDB);
            ParameterList.Clear();
            ParameterList.Add(this.hiddenPurchaseNo.Value);
            DataTable Dt = bco.GetItemGiftByPurchase_No(ParameterList);

            //將明細贈品資料放至Gift中
            Session["PUR02_Gift_" + PageTimeStamp.Value] = Dt;
            ViewState["GiftOLDData"] = ChangeNullValues(Dt);
            this.setGV_Gift(-1, Dt, false);
        }
        catch (Exception ex)
        {
            ErrorMsgLabel.Text = ex.Message;
        }
        #endregion
    }