/// <summary> /// 計算輔助功能 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void ComputBtn_Click(object sender, EventArgs e) { #region try { //System.Threading.Thread.Sleep(600000); #region ArrayList ParameterList = new ArrayList();//20091113 ParameterList.Clear(); //ParameterList.Add(DISNOTxt.Text); //配本序號 ParameterList.Add(Request.QueryString["DIS_NO"]); //配本項目商品 ParameterList.Add(Request.QueryString["ITEM"]); //配本項目期別 ParameterList.Add(Request.QueryString["PERIOD"]); //通路 switch (StoreChainRadioButtonList.SelectedIndex) { case 0: //全部通路 ParameterList.Add("0"); break; case 1: //個別通路 ParameterList.Add(SLP_StoreChain1.Text); break; } ParameterList.Add(Session["UID"].ToString());//使用者 ALOModel.MaintainDisRecord bco = new ALOModel.MaintainDisRecord(ConnectionDB); bool bResult = bco.CalculateForAssistInfo(ParameterList); if (!bResult) { throw new Exception("計算失敗!"); } ResultMsgLabel.Text = "計算成功!"; #endregion } catch (Exception ex) { ErrorMsgLabel.Text = ex.Message; } finally { UpdatePanel_ErrorMessage.Update(); } #endregion }