private void ManageAddUpdate()
    {
        try
        {
            string result = RepoReAppraisalBAL.ManageAddUpdate(Request.QueryString);
            var    brecon = result;

            Response.Write(brecon.ToJSON());

            //string result = BankReconBAL.Manage(Request.QueryString, Request.Form);
            //var brecon = result;

            //Response.Write(brecon.ToJSON());
        }
        catch (Exception ex)
        {
            var appError = new ApplicationError
            {
                ErrorMessage = ex.Message,
                ErrorCode    = 999
            };
            Response.Write(appError.ToJSON());
        }

        //Response.Write(BankReconBAL.Manage(Request.QueryString).ToJSON());
    }
    private void Manage()
    {
        //Response.Write(ExpenseShareBAL.ManageExpenseShare(Request.QueryString).ToJSON());
        try
        {
            string result = ExpenseShareBAL.ManageExpenseShare(Request.QueryString, Request.Form);

            //var revolvingfund = new ExpenseShare
            //{
            //    //ESID = Convert.ToInt32(result.Split(',')[0]),
            //    ESID = Convert.ToInt32(result[0]),
            //};

            var expenseshare = new ExpenseShare
            {
                ESID            = Convert.ToInt32(result.Split(',')[0]),
                ESDate          = result.Split(',')[1],
                Particulars     = result.Split(',')[2],
                AmtExpenseShare = Convert.ToDecimal(result.Split(',')[3])
            };

            Response.Write(expenseshare.ToJSON());
        }
        catch (Exception ex)
        {
            var appError = new ApplicationError
            {
                ErrorMessage = ex.Message,
                ErrorCode    = 999
            };
            Response.Write(appError.ToJSON());
        }
    }
Exemple #3
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());
        }
    }
    private void LockMonthBR()
    {
        try
        {
            string result = BankReconBAL.LockMonth(Request.QueryString);
            var    brecon = result;

            Response.Write(brecon.ToJSON());
        }
        catch (Exception ex)
        {
            var appError = new ApplicationError
            {
                ErrorMessage = ex.Message,
                ErrorCode    = 999
            };
            Response.Write(appError.ToJSON());
        }

        //Response.Write(BankReconBAL.Manage(Request.QueryString).ToJSON());
    }
    private void Manage()
    {
        try
        {
            string result = CVFundBAL.Manage(Request.QueryString, Request.Form);
            var    cvfund = new CVFund {
                CVFundID = Convert.ToInt32(result.Split(',')[0]), Number = 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());
        }
    }
Exemple #6
0
    private void Manage()
    {
        try
        {
            string result          = ReceivingBAL.Manage(Request.QueryString, Request.Form);
            var    receivingHeader = new ReceivingHeader {
                RRID = Convert.ToInt32(result.Split(',')[0]),
                RRNo = Convert.ToInt32(result.Split(',')[1]),
            };

            Response.Write(receivingHeader.ToJSON());
        }
        catch (Exception ex)
        {
            var appError = new ApplicationError
            {
                ErrorMessage = ex.Message
                , ErrorCode  = 999
            };
            Response.Write(appError.ToJSON());
        }
    }
    private void Manage()
    {
        try
        {
            string result = RevolvingFundBAL.ManageRevolvingFund(Request.QueryString, Request.Form);

            var revolvingfund = new RevolvingFund
            {
                RFID = Convert.ToInt32(result.Split(',')[0]),
                RFNo = result.Split(',')[1]
            };
            Response.Write(revolvingfund.ToJSON());
        }
        catch (Exception ex)
        {
            var appError = new ApplicationError
            {
                ErrorMessage = ex.Message,
                ErrorCode    = 999
            };
            Response.Write(appError.ToJSON());
        }
    }