public ActionResult CheckBill(int AdvertID,int LinkManID)
        {
            ApkDataBLL bll = new ApkDataBLL();
            List<ApkDataDto> list = (List<ApkDataDto>)bll.GetApkDataDtoList(AdvertID,"");
            double sumMoney = list.Sum<ApkDataDto>(t => Convert.ToDouble(t.Money));

            string taskids = string.Empty;
            list.ForEach(t => taskids += t.TaskID + ",");

            AdvertBill bill = new AdvertBill();
            bill.AdvertID = AdvertID;
            bill.LinkManID = LinkManID;
            bill.AdMoney = sumMoney.ToString();
            bill.ApplyTime = DateTime.Now;
            bill.PayMoney = "0";
            bill.Status = 0;//0:未付款
            bill.BillType = 0;//0:广告主
            bill.TaskIds = taskids;
            AdvertBillBLL advertBillBll = new AdvertBillBLL();

            if (advertBillBll.Add(bill))
            {
                TaskBLL taskBll = new TaskBLL();
                bll.UpdateApkDataStatus(AdvertID);
            }
            return MyContent("确认账单成功!请尽快支付款项!","/AdvertBill/AdvertBillList");
        }
        public ActionResult BillList(int AdvertID = 0, int LinkManID = 0, string TaskIds = "", string opt = "check")
        {
            ApkDataBLL bll = new ApkDataBLL();
            IList<ApkDataDto> list = bll.GetApkDataDtoList(AdvertID, TaskIds);

            double sumMoney = list.Sum<ApkDataDto>(t=>Convert.ToDouble(t.Money));
            ViewBag.SumMoney = sumMoney;
            ViewBag.AdvertID = AdvertID;
            ViewBag.LinkManID = LinkManID;
            ViewBag.Opt = opt;

            AdvertBLL advertBll = new AdvertBLL();
            Advert advert = advertBll.Get(AdvertID);
            ViewBag.AdvertName = advert.AdName;

            ViewBag.BillList = list;
            return View();
        }