}//databind_Mst /// <summary> /// 繫結資料 DTL /// </summary> private void databind_Dtl() { #region try { STMModel.MaintainRouteLine BCO = new STMModel.MaintainRouteLine(ConnectionDB); ParameterList.Clear(); ParameterList.Add(this.hiddenROUTE.Value); ParameterList.Add(this.hiddenEFF_START.Value); DataTable Dt = BCO.QueryRouteLineByPK(ParameterList); #region 將明細資料放至DetailDt中 Session["STM23_DTL_" + PageTimeStamp.Value] = Dt; #endregion #region 使用XML放置到前端資料 DataSet Ds = Dt.DataSet; DetailOLDData.InnerHtml = Ds.GetXml(); #endregion this.setGV(-1, Dt, false); } catch (Exception ex) { ErrorMsgLabel.Text = ex.Message.Split(Environment.NewLine.Replace(Environment.NewLine, "~").ToCharArray())[0]; //直接取第一個 } #endregion }//databind_Dtl