Commit 918db1d2 authored by 吴春's avatar 吴春

提交

parent 511efba4
...@@ -39,11 +39,13 @@ namespace EheMall.Mvc.Controllers ...@@ -39,11 +39,13 @@ namespace EheMall.Mvc.Controllers
Member item = new Member(); Member item = new Member();
if (Session["Member"] == null) if (Session["Member"] == null)
{ {
string sSignID = _auth.SignID(); //string sSignID = _auth.SignID();
if (string.IsNullOrEmpty(sSignID)) //if (string.IsNullOrEmpty(sSignID))
return item; // return item;
item = EngineContext.Current.Resolve<IMemberService>().Get(new Guid(sSignID)); //item = EngineContext.Current.Resolve<IMemberService>().Get(new Guid(sSignID));
Session["Member"] = item; //Session["Member"] = item;
//item = Session["Member"] as Member;
item = null;
return item; return item;
} }
item = Session["Member"] as Member; item = Session["Member"] as Member;
......
...@@ -263,7 +263,7 @@ ...@@ -263,7 +263,7 @@
var self = this; var self = this;
function MyViewModel() { function MyViewModel() {
alert();
//定义数组对象 //定义数组对象
// self.SeatData = ko.observableArray([]); // self.SeatData = ko.observableArray([]);
self.InitSeat = function () { self.InitSeat = function () {
...@@ -389,7 +389,6 @@ ...@@ -389,7 +389,6 @@
self.reSeat = function (dataRowIndex) { self.reSeat = function (dataRowIndex) {
var dataList = SeatData(); var dataList = SeatData();
alert();
var col_input = $("#col_input").val(); var col_input = $("#col_input").val();
var newObj = self.clone(SeatData()[dataRowIndex]); var newObj = self.clone(SeatData()[dataRowIndex]);
if (newObj.noLenth > 0) if (newObj.noLenth > 0)
...@@ -770,7 +769,6 @@ ...@@ -770,7 +769,6 @@
if ((leftFlag || rightFlag) && (topFlag || bottomFlag)) { if ((leftFlag || rightFlag) && (topFlag || bottomFlag)) {
selectedList.push(blockList[i]); selectedList.push(blockList[i]);
$(blockList[i]).removeClass('seat'); $(blockList[i]).removeClass('seat');
reSeat();
if ($(blockList[i]).hasClass('seled')) { if ($(blockList[i]).hasClass('seled')) {
$(blockList[i]).removeClass('seled'); $(blockList[i]).removeClass('seled');
$(blockList[i]).addClass('seat'); $(blockList[i]).addClass('seat');
...@@ -781,6 +779,20 @@ ...@@ -781,6 +779,20 @@
$(blockList[i]).removeClass('twoArea'); $(blockList[i]).removeClass('twoArea');
$(blockList[i]).removeClass('threeArea'); $(blockList[i]).removeClass('threeArea');
$(blockList[i]).removeClass('specialArea'); $(blockList[i]).removeClass('specialArea');
if (($(blockList[i]).hasClass('seled') && $(blockList[i]).hasClass('noSeat')) || $(blockList[i]).hasClass('seat') && $(blockList[i]).hasClass('noSeat')) {
$(blockList[i]).removeClass('noSeat');
var rowId = parseInt($(blockList[i]).attr('data_row_id')) - 1;
var newObj = self.clone(SeatData()[rowId]);
var iiii = parseInt(parseInt($(blockList[i]).attr('data_column_id')));
newObj.ColumnArray[iiii].SeatClassStr = "seled";
newObj.noLenth = 1;
console.log(newObj);
SeatData.replace(SeatData()[rowId], newObj);
reSeat(rowId);
}
} }
} }
} }
......
...@@ -87,7 +87,7 @@ namespace EheMall.Web.Areas.TicketMall.Controllers ...@@ -87,7 +87,7 @@ namespace EheMall.Web.Areas.TicketMall.Controllers
#endregion #endregion
#region 广告图 #region 广告图
var AdvertisingPicList = _AdvertisingPicService.GetAllList(); var AdvertisingPicList = _AdvertisingPicService.GetAllList().OrderBy(x => x.Sort);
ViewBag.AdvertisingPicList = AdvertisingPicList; ViewBag.AdvertisingPicList = AdvertisingPicList;
#endregion #endregion
return View(); return View();
...@@ -126,11 +126,12 @@ namespace EheMall.Web.Areas.TicketMall.Controllers ...@@ -126,11 +126,12 @@ namespace EheMall.Web.Areas.TicketMall.Controllers
return PartialView("_SearchIndex", list); return PartialView("_SearchIndex", list);
} }
public ActionResult GetTotalCount(string StartTime, string Name) public ActionResult GetTotalCount(string StartTime, string EndTime, string Name)
{ {
JObject inputs = new JObject(); JObject inputs = new JObject();
inputs["sOrderBy"] = "StartTime desc"; inputs["sOrderBy"] = "StartTime desc";
inputs["StartTime"] = StartTime; inputs["StartTime"] = StartTime;
inputs["EndTime"] = EndTime;
inputs["Status"] = 0; inputs["Status"] = 0;
inputs["Name"] = Name; inputs["Name"] = Name;
IEnumerable<Screening> list = _ScreeningService.GetListBy(inputs); IEnumerable<Screening> list = _ScreeningService.GetListBy(inputs);
...@@ -309,6 +310,7 @@ namespace EheMall.Web.Areas.TicketMall.Controllers ...@@ -309,6 +310,7 @@ namespace EheMall.Web.Areas.TicketMall.Controllers
List<Models.Models.TheaterPrice> priceList = new List<Models.Models.TheaterPrice>(); List<Models.Models.TheaterPrice> priceList = new List<Models.Models.TheaterPrice>();
var list = Helpers.EnumHelper.GetEnumList(typeof(Models.Enums.TheaterSeatTypeEnum)).OrderBy(x => x.Value).ToList(); var list = Helpers.EnumHelper.GetEnumList(typeof(Models.Enums.TheaterSeatTypeEnum)).OrderBy(x => x.Value).ToList();
TheaterPrice modelPrice = new TheaterPrice(); TheaterPrice modelPrice = new TheaterPrice();
entity.iMemberType = CurrentClient.MemberType;
modelPrice.iMemberType = CurrentClient.MemberType; modelPrice.iMemberType = CurrentClient.MemberType;
entity.OrderDetail = new OrderDetail(); entity.OrderDetail = new OrderDetail();
entity.OrderDetail.iMemberType = CurrentClient.MemberType; entity.OrderDetail.iMemberType = CurrentClient.MemberType;
......
...@@ -12,11 +12,11 @@ namespace EheMall.Web.Areas.TicketMall.Controllers ...@@ -12,11 +12,11 @@ namespace EheMall.Web.Areas.TicketMall.Controllers
/// <summary> /// <summary>
/// 用户授权判断 /// 用户授权判断
/// </summary> /// </summary>
private IAuthenticate _auth { get; set; } //private IAuthenticate _auth { get; set; }
//private IMemberService _MemberService { get; set; } //private IMemberService _MemberService { get; set; }
public LoginController() public LoginController()
{ {
this._auth = EngineContext.Current.ResolveOptional<IAuthenticate>(); //this._auth = EngineContext.Current.ResolveOptional<IAuthenticate>();
this._MemberService = EngineContext.Current.ResolveOptional<IMemberService>(); this._MemberService = EngineContext.Current.ResolveOptional<IMemberService>();
} }
// GET: TicketMall/Login // GET: TicketMall/Login
...@@ -40,7 +40,7 @@ namespace EheMall.Web.Areas.TicketMall.Controllers ...@@ -40,7 +40,7 @@ namespace EheMall.Web.Areas.TicketMall.Controllers
if (list[0].bIsDeleted == true) if (list[0].bIsDeleted == true)
return Json(new { valid = false, message = "用户被锁定,限制登录" }); return Json(new { valid = false, message = "用户被锁定,限制登录" });
Session["Member"] = list[0]; Session["Member"] = list[0];
this._auth.SignIn("MemberID", list[0].ID.ToString(), true); //this._auth.SignIn("MemberID", list[0].ID.ToString(), true);
} }
return Json(new { valid = bIsExists, message = bIsExists ? "用户登录成功" : "用户名或密码错误!" }); return Json(new { valid = bIsExists, message = bIsExists ? "用户登录成功" : "用户名或密码错误!" });
} }
......
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
return false; return false;
} }
} }
$(this).prop("disable", true); $(".Ticket_sureBtn").prop("disable", true);
$.ajax({ $.ajax({
type: "post", type: "post",
url: "@Url.Action("SaveOrder")", url: "@Url.Action("SaveOrder")",
...@@ -198,7 +198,7 @@ ...@@ -198,7 +198,7 @@
} }
}); });
} else { } else {
$(this).prop("disable", false); $(".Ticket_sureBtn").prop("disable", false);
layer.msg(data.message, { icon: 2 }); layer.msg(data.message, { icon: 2 });
} }
} }
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</WebStackScaffolding_LayoutPageFile> </WebStackScaffolding_LayoutPageFile>
<WebStackScaffolding_IsAsyncSelected>False</WebStackScaffolding_IsAsyncSelected> <WebStackScaffolding_IsAsyncSelected>False</WebStackScaffolding_IsAsyncSelected>
<UseIISExpress>true</UseIISExpress> <UseIISExpress>true</UseIISExpress>
<ProjectView>ShowAllFiles</ProjectView> <ProjectView>ProjectFiles</ProjectView>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<Use64BitIISExpress /> <Use64BitIISExpress />
<IISExpressSSLPort /> <IISExpressSSLPort />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment