Ejemplo n.º 1
0
    public bool UpdateFeeDeviation(long paId, long pfId, FeeDeviationPayableFeeView objFD, string paLockKey)
    {
        PaymentAdviceManager pMgr = new PaymentAdviceManager(paId, paLockKey);

        pMgr.UpdateFeeDeviation(objFD);

        return true;
    }
Ejemplo n.º 2
0
    public PaymentAdviceView RemoveOtherFee(long idPA, long idOF, string paLockKey)
    {
        PaymentAdviceManager pMgr = new PaymentAdviceManager(idPA, paLockKey);

        pMgr.RemoveOtherFee(idOF);

        return pMgr.GetCurrentPaymentAdvice();
    }
Ejemplo n.º 3
0
    public PaymentAdviceView GetPaymentAdvice(long id, string paLockKey)
    {
        //never mind about unlocking now

        PaymentAdviceManager pMgr = new PaymentAdviceManager(id, paLockKey);

        return pMgr.GetCurrentPaymentAdvice();
    }
Ejemplo n.º 4
0
    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;
    }
Ejemplo n.º 5
0
    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;
    }
Ejemplo n.º 6
0
    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>");
    }
Ejemplo n.º 7
0
    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>");

        }
    }
Ejemplo n.º 8
0
    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();
        }
    }
Ejemplo n.º 9
0
 public PaymentAdviceView UpdatePaymentAdvice(PaymentAdviceView obj, string lockKey)
 {
     PaymentAdviceManager pMgr = new PaymentAdviceManager(obj.Id, lockKey);
         pMgr.UpdatePaymentAdvice(obj);
         return pMgr.GetCurrentPaymentAdvice();
 }
Ejemplo n.º 10
0
    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);
    }