Пример #1
0
    private void ManageDelete()
    {
        string result = MCPlanQuotaBAL.ManageDelete(Request.QueryString);

        var brecon = Convert.ToInt32(result);

        Response.Write(brecon.ToJSON());
    }
Пример #2
0
    private void ManageInsert()
    {
        string result = MCPlanQuotaBAL.ManageInsert(Request.QueryString);

        var brecon = result;

        Response.Write(brecon.ToJSON());
    }
Пример #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());
    }
Пример #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());
        }
    }
Пример #5
0
 private void GetPlanDetail()
 {
     Response.Write(MCPlanQuotaBAL.GetPlan(Request.QueryString).ToJSON());
 }