private void getQTY_Data() { ParameterList.Clear(); ParameterList.Add(txtPLAN_ACCEPT_DATE.Text); ParameterList.Add(SLP_VIRTUAL_CODE.Text); ParameterList.Add(txtPERIOD.Text); PURModel.MaintainPurchaseDeliveryGoods BCO = new PURModel.MaintainPurchaseDeliveryGoods(ConnectionDB); DataTable Dt_Find = BCO.GetPurchaseItemInfo(ParameterList); if (Dt_Find != null && Dt_Find.Rows.Count > 0) { lblONWAY_QTY.Text = Dt_Find.Rows[0]["ONWAY_QTY"].ToString(); lblONHD_QTY.Text = Dt_Find.Rows[0]["ONHD_QTY"].ToString(); lblDIS_QTY.Text = Dt_Find.Rows[0]["DIS_QTY"].ToString(); lblDIFF_QTY.Text = Dt_Find.Rows[0]["DIFF_QTY"].ToString(); } else { lblONWAY_QTY.Text = ""; lblONHD_QTY.Text = ""; lblDIS_QTY.Text = ""; lblDIFF_QTY.Text = ""; } //品號或期別變更時,清除PickControl裏的值 string SessionIDName_Pick = "PUR041_Pick" + PageTimeStamp.Value; DataTable dt = (DataTable)Session[SessionIDName_Pick]; //通路管制設定 if (dt != null) { DataRow[] drs = dt.Select("VIRTUAL_CODE = '" + SLP_VIRTUAL_CODE.Text + "' and PERIOD = '" + txtPERIOD.Text + "'"); if (drs.Length > 0) foreach (DataRow dr in drs) dt.Rows.Remove(dr); } if (hidPERIOD.Value != txtPERIOD.Text) { radPICK_SELECT1.Checked = false; radPICK_SELECT2.Checked = true; btn_GV_Set.Enabled = false; } string Item_Name = ((TextBox)((PIC.VDS2G.WebUI.SLP.MKT_SLP_GiftItem)SLP_VIRTUAL_CODE).FindControl("TextBoxName")).Text; if (Item_Name != "" && Item_Name != "查無資料" && txtPERIOD.Text != "") { SLP_VIRTUAL_CODE.ReadOnly = true; txtPERIOD.ReadOnly = true; txtPERIOD.CssClass = "readtxtbox"; } }