public bool UpdateFeeDeviation(long paId, long pfId, FeeDeviationPayableFeeView objFD, string paLockKey) { PaymentAdviceManager pMgr = new PaymentAdviceManager(paId, paLockKey); pMgr.UpdateFeeDeviation(objFD); return true; }
public PaymentAdviceView RemoveOtherFee(long idPA, long idOF, string paLockKey) { PaymentAdviceManager pMgr = new PaymentAdviceManager(idPA, paLockKey); pMgr.RemoveOtherFee(idOF); return pMgr.GetCurrentPaymentAdvice(); }
public PaymentAdviceView GetPaymentAdvice(long id, string paLockKey) { //never mind about unlocking now PaymentAdviceManager pMgr = new PaymentAdviceManager(id, paLockKey); return pMgr.GetCurrentPaymentAdvice(); }
public ArrayList GetPaymentAdvice(long id, string paLockKey) { //never mind about unlocking now PaymentAdviceManager pMgr = new PaymentAdviceManager(id,paLockKey); ArrayList result = new ArrayList(); result.Add(pMgr.GetCurrentPaymentAdvice()); return result; }
public bool RemoveFeeDeviation(long paId, long pfId, int fdId, string paLockKey) { //never mind about unlocking and security now //design flaw. reconsider later PaymentAdviceManager pMgr = new PaymentAdviceManager(paId, paLockKey); pMgr.RemoveFeeDeviation(pfId, fdId); return true; }
protected void btnViewAll_Click(object sender, EventArgs e) { long paId = Convert.ToInt64(hdnPaymentAdviceId.Value); string paLockKey = hdnPaLockKey.Value; PaymentAdviceManager pMgr = new PaymentAdviceManager(paId, paLockKey); pMgr.AddOtherFee(txtName.Text); Response.Write( "<script language='javascript' type='text/javascript'>" + "parent.closeOFDialog();" + "</script>"); }
protected void grdData_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "SelectOFeeT") { GridViewRow row = grdData.Rows[Convert.ToInt32(e.CommandArgument)]; long paId = Convert.ToInt64(hdnPaymentAdviceId.Value); string paLockKey = hdnPaLockKey.Value; PaymentAdviceManager pMgr = new PaymentAdviceManager(paId, paLockKey); pMgr.AddOtherFee(Convert.ToInt64(row.Cells[0].Text)); Response.Write( "<script language='javascript' type='text/javascript'>" + "parent.closeOFDialog();" + "</script>"); } }
protected void Page_Load(object sender, EventArgs e) { //SECURITY CHECK HERE if (!Page.IsPostBack) { hdnPaymentAdviceId.Value =Request.QueryString["paId"]; hdnPaLockKey.Value = Request.QueryString["paLockKey"]; if (!string.IsNullOrEmpty(Request.QueryString["regId"])) { hdnRegularId.Value = Request.QueryString["regId"]; } else if (!string.IsNullOrEmpty(Request.QueryString["ofId"])) { hdnOtherFeeId.Value = Request.QueryString["ofId"]; } txtSearch.Attributes.Add("onkeypress", "allowAlphaNumeric()"); } pMgr = new PaymentAdviceManager(hdnPaLockKey.Value); pMgr.SelectPaymentAdvice(Convert.ToInt64(hdnPaymentAdviceId.Value)); if (!string.IsNullOrEmpty(hdnRegularId.Value)) { curPF = pMgr.CurrentPaymentAdvice.ClassFees[Convert.ToInt32(hdnRegularId.Value)]; } else { curPF = pMgr.CurrentPaymentAdvice.OtherFees[Convert.ToInt64(hdnOtherFeeId.Value)]; } if(!Page.IsPostBack) { InitPage(); } }
public PaymentAdviceView UpdatePaymentAdvice(PaymentAdviceView obj, string lockKey) { PaymentAdviceManager pMgr = new PaymentAdviceManager(obj.Id, lockKey); pMgr.UpdatePaymentAdvice(obj); return pMgr.GetCurrentPaymentAdvice(); }
public OtherFeeView UpdateOtherFee(OtherFeeView obj, string lockKey) { //ClassFeeView obj =(ClassFeeView) AjaxPro.JavaScriptDeserializer.DeserializeFromJson(jsonString, typeof(ClassFeeView)); PaymentAdviceManager pMgr = new PaymentAdviceManager(obj.IdPaymentAdvice, lockKey); pMgr.UpdateOtherFee(obj); return pMgr.GetOtherFee(obj.Id); }