//配量微調 protected void btnFineTune_Click(object sender, EventArgs e) { try { #region 刪除VDS_ALO_122_TMP ArrayList ParameterList = new ArrayList();//20091113 ParameterList.Clear(); ParameterList.Add(PageTimeStamp.Value + Session["UID"].ToString()); ParameterList.Add(Session["UID"].ToString()); //登入者 BCO.MaintainDisRecord bco = new BCO.MaintainDisRecord(ConnectionDB); bco.DeleteOldTmpDataFor122(ParameterList, null); #endregion #region 新增VDS_ALO_122_TMP ParameterList.Clear(); ParameterList.Add(PageTimeStamp.Value + Session["UID"].ToString()); ParameterList.Add(Session["UID"].ToString()); bco.Create122TmpDataFrom121(ParameterList, null); Response.Redirect("ALO122.aspx?Code=ALO12&pPG_ID=ALO121&PageTimeStamp=" + PageTimeStamp.Value + "&pDate=" + DateTime.Parse(SLP_ST_ACCEPT_DATE.Text).ToShortDateString() + "&pDisNo=" + txtDIS_NO.Text + "&pItem=" + hidITEM.Value + "&pPeriod=" + hidPERIOD.Value + "&pChanNo=" + hidChan_No2.Value + "&pDIS_TOT_OQTY=" + txtDIS_TOT_OQTY.Text + //通路合計 "&pN_DIS_TOT_QTY=" + txtN_DIS_TOT_QTY.Text + //路線合計 "&pN_MAX_ROUTE=" + SLP_N_MAX_ROUTE.Text + "&pN_MIN_ROUTE=" + SLP_N_MIN_ROUTE.Text + "&pRoot_No=" + hidRoot_No.Value + "&pN_DisTotQty=" + txtZO_Sum.Text + //總配量 "&pN_PageTotQty=" + lblQueryTotRec.Text //頁面合計配量 ); #endregion } catch (Exception ex) { this.lblErrorQ1.Text = ex.Message; lblErrorQ1.Visible = true; } }