Example #1
0
        public JsonResult <Models.SBP_BlotterRTGS> GetBlotterRTGS(int id)
        {
            EntityMapperBlotterRTGS <DataAccessLayer.SBP_BlotterRTGS, Models.SBP_BlotterRTGS>
            mapObj = new EntityMapperBlotterRTGS <DataAccessLayer.SBP_BlotterRTGS, Models.SBP_BlotterRTGS>();

            DataAccessLayer.SBP_BlotterRTGS dalBlotterRTGS = DAL.GetRTGSItem(id);
            Models.SBP_BlotterRTGS          products       = new Models.SBP_BlotterRTGS();
            products = mapObj.Translate(dalBlotterRTGS);
            return(Json <Models.SBP_BlotterRTGS>(products));
        }
Example #2
0
        public JsonResult <List <Models.SP_GETAllTransactionTitles_Result> > GetAllRTGSTransactionTitles()
        {
            EntityMapperBlotterRTGS <DataAccessLayer.SP_GETAllRTGSTransactionTitles_Result, Models.SP_GETAllTransactionTitles_Result>
            mapObj = new EntityMapperBlotterRTGS <DataAccessLayer.SP_GETAllRTGSTransactionTitles_Result, Models.SP_GETAllTransactionTitles_Result>();

            List <DataAccessLayer.SP_GETAllRTGSTransactionTitles_Result> blotterRTGSList = DAL.GetAllRTGSTransactionTitles();
            List <Models.SP_GETAllTransactionTitles_Result> blotterRTGS = new List <Models.SP_GETAllTransactionTitles_Result>();

            foreach (var item in blotterRTGSList)
            {
                blotterRTGS.Add(mapObj.Translate(item));
            }
            return(Json <List <Models.SP_GETAllTransactionTitles_Result> >(blotterRTGS));
        }
Example #3
0
        public bool UpdateRTGS(Models.SBP_BlotterRTGS blotterRTGS)
        {
            bool status = false;

            if (ModelState.IsValid)
            {
                EntityMapperBlotterRTGS <Models.SBP_BlotterRTGS, DataAccessLayer.SBP_BlotterRTGS> mapObj = new EntityMapperBlotterRTGS <Models.SBP_BlotterRTGS, DataAccessLayer.SBP_BlotterRTGS>();
                DataAccessLayer.SBP_BlotterRTGS RTGSObj = new DataAccessLayer.SBP_BlotterRTGS();
                RTGSObj = mapObj.Translate(blotterRTGS);
                status  = DAL.UpdateRTGS(RTGSObj);
            }
            return(status);
        }
Example #4
0
        public JsonResult <List <Models.SP_GetAll_SBPBlotterRTGS_Dashboard_Result> > GetAllBlotterRTGSDashboard(int UserID, int BranchID, int CurID, int BR, string DateVal)
        {
            EntityMapperBlotterRTGS <DataAccessLayer.SP_GetAll_SBPBlotterRTGS_Dashboard_Result, Models.SP_GetAll_SBPBlotterRTGS_Dashboard_Result> mapObj = new EntityMapperBlotterRTGS <DataAccessLayer.SP_GetAll_SBPBlotterRTGS_Dashboard_Result, Models.SP_GetAll_SBPBlotterRTGS_Dashboard_Result>();

            List <DataAccessLayer.SP_GetAll_SBPBlotterRTGS_Dashboard_Result> blotterRTGSList = DAL.GetAllBlotterRTGSDashboard(UserID, BranchID, CurID, BR, DateVal);
            List <Models.SP_GetAll_SBPBlotterRTGS_Dashboard_Result>          blotterRTGS     = new List <Models.SP_GetAll_SBPBlotterRTGS_Dashboard_Result>();

            foreach (var item in blotterRTGSList)
            {
                blotterRTGS.Add(mapObj.Translate(item));
            }
            return(Json <List <Models.SP_GetAll_SBPBlotterRTGS_Dashboard_Result> >(blotterRTGS));
        }