Esempio n. 1
0
        public ActionResult MyShareProfit()
        {
            decimal myShareProfit = 0m;
            List <pbs_basic_MyShareProfit> pbs_basic_MyShareProfitList  = new List <pbs_basic_MyShareProfit>();
            pbs_basic_MyShareProfitService pbsBasicMyShareProfitService = new pbs_basic_MyShareProfitService();
            ResultInfo <List <pbs_basic_MyShareProfit> > result_listMyShareProfitResult = pbsBasicMyShareProfitService.GetMyShareProfitList(userid);

            if (result_listMyShareProfitResult.Result && result_listMyShareProfitResult.Data != null)
            {
                pbs_basic_MyShareProfitList = result_listMyShareProfitResult.Data;
            }

            ResultInfo <decimal> result_GetMyShareProfitByUserId = pbsBasicMyShareProfitService.GetMyShareProfitByUserId(userid);

            if (result_GetMyShareProfitByUserId.Result && result_GetMyShareProfitByUserId.Data != 0)
            {
                myShareProfit = result_GetMyShareProfitByUserId.Data;
            }

            ViewData["MyShareProfit"] = myShareProfit;
            ViewData["pbs_basic_MyShareProfitList"] = pbs_basic_MyShareProfitList;

            return(View(pbs_basic_MyShareProfitList));
        }
Esempio n. 2
0
 public void TestGetMyShareProfitList()
 {
     int userId = 2;
     pbs_basic_MyShareProfitService pbsBasicMyShareProfitService = new pbs_basic_MyShareProfitService();
     var result = pbsBasicMyShareProfitService.GetMyShareProfitList(userId);
 }
Esempio n. 3
0
        public ActionResult MemberShareProfitList(int userId)
        {
            List <pbs_basic_MyShareProfit> pbs_basic_MyShareProfitList  = new List <pbs_basic_MyShareProfit>();
            pbs_basic_MyShareProfitService pbsBasicMyShareProfitService = new pbs_basic_MyShareProfitService();
            ResultInfo <List <pbs_basic_MyShareProfit> > result_listMyShareProfitResult = pbsBasicMyShareProfitService.GetMyShareProfitList(userId);

            if (result_listMyShareProfitResult.Result && result_listMyShareProfitResult.Data != null)
            {
                pbs_basic_MyShareProfitList = result_listMyShareProfitResult.Data;
            }
            ViewData["pbs_basic_MyShareProfitList"] = pbs_basic_MyShareProfitList;
            return(View());
        }