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 TestGetMyShareProfitByUserId()
 {
     pbs_basic_MyShareProfitService pbsBasicMyShareProfitService = new pbs_basic_MyShareProfitService();
     int userId = 7;
     var result = pbsBasicMyShareProfitService.GetMyShareProfitByUserId(userId);
 }