Exemplo n.º 1
0
        /// <summary>
        /// 获取某天的放映场次信息
        /// </summary>
        /// <param name="datamager"></param>
        /// <returns></returns>
        public List <ShowPlanInfo> GetShowPlanInfoList(DailyShowPlanManage datamager)
        {
            List <ShowPlanInfo> list = new List <ShowPlanInfo>();

            //  var tmpList = de.ShowPlan.Where(p => p.DailyPlan.PlanDate == datamager.DailyShowPlan.DailyPlan.PlanDate);
            var tmpList = datamager.DailyShowPlan.ShowPlanList;

            foreach (var tmp in tmpList)
            {
                ShowPlanInfo showplaninfo = new ShowPlanInfo();

                showplaninfo.ShowPlanName = tmp.Position + "--" + tmp.ShowPlanName;
                showplaninfo.ShowPlanId   = tmp.ShowPlanId;
                showplaninfo.HallId       = tmp.HallId;
                showplaninfo.IsLocked     = tmp.IsLocked;
                list.Add(showplaninfo);
            }
            return(list);
        }
Exemplo n.º 2
0
        private void cbShowPlan_SelectedIndexChanged(object sender, EventArgs e)
        {
            UnBindData();
            showplaninfo = this.showPlanInfoList.Where(p => p.ShowPlanId == cbShowPlan.SelectedValue.ToString()).FirstOrDefault();
            if (showplaninfo != null)
            {
                if (showplaninfo.FareSettingId != dataManager.FareSettingShowPlanPriceId)
                {
                    var tmp = dataManager.GetFareSettingList.Where(p => p.FareSettingId == dataManager.FareSettingShowPlanPriceId).FirstOrDefault();
                    showplaninfo.SinglePrice  = tmp.SinglePrice;
                    showplaninfo.DoublePrice  = tmp.DoublePrice;
                    showplaninfo.StudentPrice = tmp.StudentPrice;
                    showplaninfo.GroupPrice   = tmp.GroupPrice;
                    showplaninfo.MemberPrice  = tmp.MemberPrice;
                    showplaninfo.BoxPrice     = tmp.BoxPrice;
                }

                BindData();
                SetPrice();
            }
        }