protected void btnUpdateGeneralMemo_ClickEx(object sender, EventArgs e) { DateTime ApprovedDate; _GenMemoObj = GMCM.GetGeneralMemoConcessionByKey(Convert.ToInt64(Session["MemoID"])); PricePointManager PPM = new PricePointManager(); ApprovedDate = PPM.GetApprovedDate(_GenMemoObj.MemoNumber); PPM.DeleteByMemoNo(_GenMemoObj.MemoNumber); GeneralMemoConcessionDetailManager GMCDManager = new GeneralMemoConcessionDetailManager(); GMCDManager.DeleteByMemoID(_GenMemoObj.RecordNumber); if (_GenMemoObj.PriceType.ToUpper() == "AREA") SavePricePointByArea(_GenMemoObj,ApprovedDate); if (_GenMemoObj.PriceType.ToUpper() == "SUB-AREA") SavePricePointBySubArea(_GenMemoObj,ApprovedDate); if (_GenMemoObj.PriceType.ToUpper() == "CUSTOMER") SavePricePointByCustomer(_GenMemoObj,ApprovedDate); SaveGenMemoDetail(_GenMemoObj); lblNewMemoNo.Text = string.Format(lblNewMemoNo.Text, txtMemoNumber.Text); hfMemoNoPopupExtender.Show(); }