}//databind_ITEM2 private void databind_ITEM3() { #region //抓取本頁初次登記的時間 string ORDER_QTY = "0"; string CB_ACCEPT_QTY = "0"; string SessionIDName = string.Format("{0}_{1}", PAGE_DT_01, PageTimeStamp.Value); MKTModel.MaintainItemChainSaleSumResult BCO = new MKTModel.MaintainItemChainSaleSumResult(ConnectionDB); ParameterList.Clear(); ParameterList.Add(GetValueSetParameter(this.SLP_ITEM.Text, "string", false)); ParameterList.Add(GetValueSetParameter(this.SLP_PERIOD.Text, "string", false)); BCO.QueryStoreByFind(ParameterList, out ORDER_QTY, out CB_ACCEPT_QTY); txtORDER_QTY.Text = ORDER_QTY; txtCB_ACCEPT_QTY.Text = CB_ACCEPT_QTY; #endregion }//databind_ITEM3
}//databind_ITEM private void databind_ITEM2() { #region //抓取本頁初次登記的時間 string SessionIDName = string.Format("{0}_{1}", PAGE_DT_01, PageTimeStamp.Value); MKTModel.MaintainItemChainSaleSumResult BCO = new MKTModel.MaintainItemChainSaleSumResult(ConnectionDB); ParameterList.Clear(); ParameterList.Add(GetValueSetParameter(this.SLP_ITEM.Text, "string", false)); ParameterList.Add(GetValueSetParameter(this.SLP_PERIOD.Text, "string", false)); DataTable Dt_ITEM_POS = BCO.QuerySwitch(MKTModel.MaintainItemChainSaleSumResult.QueryType.QueryChanMKTByFind, ParameterList); Session[SessionIDName] = Dt_ITEM_POS; GridView5.DataSource = Dt_ITEM_POS; GridView5.DataBind(); DataTable Dt_ITEM = BCO.QuerySwitch(MKTModel.MaintainItemChainSaleSumResult.QueryType.QueryByCHAN, ParameterList); Session[SessionIDName] = Dt_ITEM; GridView6.DataSource = Dt_ITEM; GridView6.DataBind(); if (Dt_ITEM == null || (Dt_ITEM != null && Dt_ITEM.Rows.Count <= 0)) { ErrorMsgLabel.Text = "查無資料"; } #endregion }//databind_ITEM2