protected void MRP_onclick(object sender, EventArgs e) { try { TheMrpMgr.RunMrp(this.CurrentUser); } catch (BusinessErrorException ex) { this.ShowErrorMessage(ex); } }
protected void btnRunPurchasePlan_Click(object sender, EventArgs e) { try { TheMrpMgr.RunMrp(this.CurrentUser); ShowSuccessMessage("生成成功。"); } catch (BusinessErrorException ex) { ShowErrorMessage(ex); } catch (SqlException ex) { ShowErrorMessage(ex.Message); } catch (Exception ee) { ShowErrorMessage(ee.Message); } this.showTimes.Style.Value = "display:none"; }