Esempio n. 1
0
    private void ManageDelete()
    {
        string result = MCPlanQuotaBAL.ManageDelete(Request.QueryString);

        var brecon = Convert.ToInt32(result);

        Response.Write(brecon.ToJSON());
    }
Esempio n. 2
0
    private void ManageInsert()
    {
        string result = MCPlanQuotaBAL.ManageInsert(Request.QueryString);

        var brecon = result;

        Response.Write(brecon.ToJSON());
    }
Esempio n. 3
0
    private void Manage()
    {
        string result = MCPlanQuotaBAL.Manage(Request.QueryString, Request.Form);

        //var cvfund = new CVFund { CVFundID = Convert.ToInt32(result.Split(',')[0]), Number = Convert.ToInt32(result.Split(',')[1]) };

        var brecon = Convert.ToInt32(result);

        Response.Write(brecon.ToJSON());
    }
Esempio n. 4
0
    private void GetPlanHeader()
    {
        try
        {
            string result = MCPlanQuotaBAL.GetPlanHhdr(Request.QueryString);
            var    cvfund = new MCPlanQuota {
                PlanQuotaID = Convert.ToInt32(result.Split(',')[0]), PlanQuotaYear = Convert.ToInt32(result.Split(',')[1])
            };

            Response.Write(cvfund.ToJSON());
        }
        catch (Exception ex)
        {
            var appError = new ApplicationError
            {
                ErrorMessage = ex.Message,
                ErrorCode    = 999
            };
            Response.Write(appError.ToJSON());
        }
    }
Esempio n. 5
0
 private void GetPlanDetail()
 {
     Response.Write(MCPlanQuotaBAL.GetPlan(Request.QueryString).ToJSON());
 }