// // GET: /ZPVM/RuleControlObject/Modify public async Task <ActionResult> Modify(string code, EnumPVMTestDataType obj, string type) { EquipmentControlObjectViewModel viewModel = new EquipmentControlObjectViewModel(); using (EquipmentControlObjectServiceClient client = new EquipmentControlObjectServiceClient()) { MethodReturnResult <EquipmentControlObject> result = await client.GetAsync(new EquipmentControlObjectKey() { Code = code, Object = obj, Type = type }); if (result.Code == 0) { viewModel = new EquipmentControlObjectViewModel() { Code = result.Data.Key.Code, Value = result.Data.Value, Type = result.Data.Key.Type, Object = result.Data.Key.Object, IsUsed = result.Data.IsUsed, CreateTime = result.Data.CreateTime, Creator = result.Data.Creator, Editor = result.Data.Editor, EditTime = result.Data.EditTime }; return(PartialView("_ModifyPartial", viewModel)); } else { ModelState.AddModelError("", result.Message); } } return(PartialView("_ModifyPartial")); }
public IEnumerable <SelectListItem> GetOrderNumberList() { IList <WorkOrder> lst = new List <WorkOrder>(); PagingConfig cfg = new PagingConfig() { IsPaging = false, Where = " OrderState = 0" }; using (WorkOrderServiceClient client = new WorkOrderServiceClient()) { MethodReturnResult <IList <WorkOrder> > result = client.Get(ref cfg); if (result.Code <= 0 && result.Data != null) { lst = result.Data; } } return(from item in lst select new SelectListItem() { Text = item.Key, Value = item.Key }); }
public IEnumerable <SelectListItem> GetRouteNameList() { using (RouteServiceClient client = new RouteServiceClient()) { PagingConfig cfg = new PagingConfig() { IsPaging = false, Where = string.Format("Status='{0}'", Convert.ToInt32(EnumObjectStatus.Available)) }; MethodReturnResult <IList <Route> > result = client.Get(ref cfg); if (result.Code <= 0) { IEnumerable <SelectListItem> lst = from item in result.Data select new SelectListItem() { Text = item.Key, Value = item.Key }; return(lst); } } return(new List <SelectListItem>()); }
public ActionResult GetPowersetCode(string q) { IList <Powerset> lstDetail = new List <Powerset>(); using (PowersetServiceClient client = new PowersetServiceClient()) { PagingConfig cfg = new PagingConfig() { IsPaging = false, Where = string.Format(@"CONCAT(Key.Code ,cast(Key.ItemNo as string)) LIKE '{0}%' AND IsUsed=1" , q), OrderBy = "Key" }; MethodReturnResult <IList <Powerset> > result = client.Get(ref cfg); if (result.Code <= 0 && result.Data != null) { lstDetail = result.Data; } } var lnq = from item in lstDetail select item.Key; return(Json(from item in lstDetail select new { @label = item.Key + "-" + item.Name + "-" + item.PowerName, @value = item.Key.Code + item.Key.ItemNo.ToString(), //@value = item.Key.Code, @Data = item, @SubWay = item.SubWay.ToString() }, JsonRequestBehavior.AllowGet)); }
//GET: /FMM/MaterialChestParameter/ public async Task <ActionResult> Index(string productCode) { using (MaterialServiceClient client = new MaterialServiceClient()) { MethodReturnResult <Material> result = await client.GetAsync(productCode ?? string.Empty); if (result.Code > 0 || result.Data == null) { return(RedirectToAction("Index", "Material")); } ViewBag.Material = result.Data; } using (MaterialChestParameterServiceClient client = new MaterialChestParameterServiceClient()) { await Task.Run(() => { PagingConfig cfg = new PagingConfig() { OrderBy = " Key ", Where = string.Format(" Key = '{0}'", productCode) }; MethodReturnResult <IList <MaterialChestParameter> > result = client.Get(ref cfg); if (result.Code == 0) { ViewBag.PagingConfig = cfg; ViewBag.List = result.Data; } }); } return(View(new MaterialChestParameterQueryViewModel() { ProductCode = productCode })); }
/// <summary> /// 取得车间代码 /// </summary> /// <returns></returns> public IEnumerable <SelectListItem> GetLocationName() { using (LocationServiceClient client = new LocationServiceClient()) { PagingConfig cfg = new PagingConfig() { IsPaging = false, Where = string.Format("Level='{0}'", Convert.ToInt32(LocationLevel.Room)) }; MethodReturnResult <IList <Location> > result = client.Get(ref cfg); if (result.Code <= 0) { IEnumerable <SelectListItem> lst = from item in result.Data select new SelectListItem() { Text = item.Key, Value = item.Key }; return(lst); } } return(new List <SelectListItem>()); }
public IEnumerable <SelectListItem> GetReasonCodeCategoryName() { IList <ReasonCodeCategory> lst = null; using (ReasonCodeCategoryServiceClient client = new ReasonCodeCategoryServiceClient()) { PagingConfig cfg = new PagingConfig() { IsPaging = false, Where = "Key.Type='0'" }; MethodReturnResult <IList <ReasonCodeCategory> > result = client.Get(ref cfg); if (result.Code <= 0 && result.Data != null) { lst = result.Data; } } return(from item in lst select new SelectListItem { Text = item.Key, Value = item.Key }); }
/// <summary> /// 初始化查询列表 /// </summary> /// <returns></returns> public async Task <ActionResult> Index() { using (RouteOperationServiceClient client = new RouteOperationServiceClient()) { await Task.Run(() => { PagingConfig cfg = new PagingConfig() { Where = string.Format(" Status = '{0}'" , EnumObjectStatus.Available.GetHashCode()), OrderBy = "SortSeq" }; MethodReturnResult <IList <RouteOperation> > result = client.Get(ref cfg); if (result.Code == 0) { ViewBag.PagingConfig = cfg; ViewBag.List = result.Data; } }); } return(View(new RouteOperationQueryViewModel())); }
public IEnumerable <SelectListItem> GetParameterNameList() { using (ParameterServiceClient client = new ParameterServiceClient()) { PagingConfig cfg = new PagingConfig() { IsPaging = false, Where = string.Format("Type='{0}'", Convert.ToInt32(EnumParameterType.Route)) }; MethodReturnResult <IList <Parameter> > result = client.Get(ref cfg); if (result.Code <= 0) { IEnumerable <SelectListItem> lst = from item in result.Data select new SelectListItem() { Text = item.Key, Value = item.Key }; return(lst); } } return(new List <SelectListItem>()); }
// // GET: /PPM/WorkOrderBOM/Detail public async Task <ActionResult> Detail(string orderNumber, int itemNo) { using (WorkOrderBOMServiceClient client = new WorkOrderBOMServiceClient()) { MethodReturnResult <WorkOrderBOM> result = await client.GetAsync(new WorkOrderBOMKey() { OrderNumber = orderNumber, ItemNo = itemNo }); if (result.Code == 0) { WorkOrderBOMViewModel viewModel = new WorkOrderBOMViewModel() { OrderNumber = result.Data.Key.OrderNumber, ItemNo = result.Data.Key.ItemNo, WorkCenter = result.Data.WorkCenter, StoreLocation = result.Data.StoreLocation, Qty = result.Data.Qty, MaterialUnit = result.Data.MaterialUnit, MaterialCode = result.Data.MaterialCode, Description = result.Data.Description, Creator = result.Data.Creator, CreateTime = result.Data.CreateTime, Editor = result.Data.Editor, EditTime = result.Data.EditTime }; return(PartialView("_InfoPartial", viewModel)); } else { ModelState.AddModelError("", result.Message); } } return(PartialView("_InfoPartial")); }
public IEnumerable <SelectListItem> GetLocationNameList() { IList <Location> lst = new List <Location>(); PagingConfig cfg = new PagingConfig() { IsPaging = false, Where = string.Format("Level='{0}'", Convert.ToInt32(LocationLevel.Room)) }; using (LocationServiceClient client = new LocationServiceClient()) { MethodReturnResult <IList <Location> > result = client.Get(ref cfg); if (result.Code <= 0 && result.Data != null) { lst = result.Data; } } return(from item in lst select new SelectListItem() { Text = item.Key, Value = item.Key }); }
// // GET: /FMM/ScheduleDetail/ public async Task <ActionResult> Index(string scheduleName) { using (ScheduleServiceClient client = new ScheduleServiceClient()) { MethodReturnResult <Schedule> result = await client.GetAsync(scheduleName ?? string.Empty); if (result.Code > 0 || result.Data == null) { return(RedirectToAction("Index", "Schedule")); } ViewBag.Schedule = result.Data; } using (ScheduleDetailServiceClient client = new ScheduleDetailServiceClient()) { await Task.Run(() => { PagingConfig cfg = new PagingConfig() { Where = string.Format(" Key.ScheduleName = '{0}'" , scheduleName) }; MethodReturnResult <IList <ScheduleDetail> > result = client.Get(ref cfg); if (result.Code == 0) { ViewBag.PagingConfig = cfg; ViewBag.List = result.Data; } }); } return(View(new ScheduleDetailQueryViewModel() { ScheduleName = scheduleName })); }
private IList <RouteStepParameter> GetParameterList(string routeName, string routeStepName, EnumLotState stateFlag) { if (stateFlag != EnumLotState.WaitTrackIn && stateFlag != EnumLotState.WaitTrackOut) { return(null); } //如果本次请求有获取过参数清单,则直接返回。 if (ViewBag.ParameterList != null) { return(ViewBag.ParameterList); } using (RouteStepParameterServiceClient client = new RouteStepParameterServiceClient()) { PagingConfig cfg = new PagingConfig() { IsPaging = false, OrderBy = "ParamIndex", Where = string.Format(@"DataFrom='{0}' AND DCType='{1}' AND IsDeleted=0 AND Key.RouteName='{2}' AND Key.RouteStepName='{3}'" , Convert.ToInt32(EnumDataFrom.Manual) , stateFlag == EnumLotState.WaitTrackIn ? Convert.ToInt32(EnumDataCollectionAction.TrackIn) : Convert.ToInt32(EnumDataCollectionAction.TrackOut) , routeName , routeStepName) }; MethodReturnResult <IList <RouteStepParameter> > result = client.Get(ref cfg); if (result.Code <= 0 && result.Data != null) { ViewBag.ParameterList = result.Data; return(result.Data); } } return(null); }
public ActionResult SaveModal(LotTrackViewModel model) { MethodReturnResult result = new MethodReturnResult(); try { string lotNumber = model.LotNumber.ToUpper(); result = GetLot(lotNumber); if (result.Code > 0) { return(Json(result)); } MethodReturnResult <Lot> rst = result as MethodReturnResult <Lot>; result = Track(rst.Data, model); } catch (Exception ex) { result.Code = 1000; result.Message = ex.Message; result.Detail = ex.ToString(); } // 如果我们进行到这一步时某个地方出错,则重新显示表单 return(Json(result)); }
// // GET: /Account/ModifyInfo public ActionResult ModifyInfo(ManageMessageId?message) { ViewBag.StatusMessage = message == ManageMessageId.ChangeInfoSuccess ? "修改信息成功。" : message == ManageMessageId.Error ? "出现错误。" : ""; ViewBag.ReturnUrl = Url.Action("ModifyInfo"); using (UserServiceClient client = new UserServiceClient()) { MethodReturnResult <User> result = client.Get(User.Identity.Name); if (result.Code == 0) { ModifyInfoViewModel model = new ModifyInfoViewModel() { Email = result.Data.Email, MobilePhone = result.Data.MobilePhone, OfficePhone = result.Data.OfficePhone }; return(View(model)); } } return(View()); }
// // GET: /ZPVM/Efficiency/Detail public async Task <ActionResult> Detail(string group, string code) { using (EfficiencyServiceClient client = new EfficiencyServiceClient()) { EfficiencyKey key = new EfficiencyKey() { Code = code, Group = group }; MethodReturnResult <Efficiency> result = await client.GetAsync(key); if (result.Code == 0) { EfficiencyViewModel viewModel = new EfficiencyViewModel() { Description = result.Data.Description, IsUsed = result.Data.IsUsed, Group = result.Data.Key.Group, Name = result.Data.Name, Lower = result.Data.Lower, Upper = result.Data.Upper, Code = result.Data.Key.Code, CreateTime = result.Data.CreateTime, Creator = result.Data.Creator, Editor = result.Data.Editor, EditTime = result.Data.EditTime }; return(PartialView("_InfoPartial", viewModel)); } else { ModelState.AddModelError("", result.Message); } } return(PartialView("_InfoPartial")); }
/// <summary> /// 取得当月的日列表 /// </summary> /// <param name="year"></param> /// <param name="month"></param> /// <returns></returns> public ActionResult GetDays(string year, string month) { MethodReturnResult result = new MethodReturnResult(); try { List <SelectListItem> lst = new List <SelectListItem>(); if (year != null) { string sDate = year + month + "01"; DateTime dtData = DateTime.ParseExact(sDate, "yyyyMMdd", System.Globalization.CultureInfo.CurrentCulture);; int days = DateTime.DaysInMonth(dtData.Year, dtData.Month); for (int i = 1; i <= days; i++) { string value = i.ToString("00"); lst.Add(new SelectListItem() { Text = value, Value = value }); } } return(Json(lst, JsonRequestBehavior.AllowGet)); } catch (Exception e) { result.Code = 1002; result.Message = e.Message; result.Detail = e.ToString(); return(Json(result)); } }
public List <string> GetCodeAndItemNo(OemData oemData) { List <string> dic = new List <string>(); using (WorkOrderPowersetServiceClient client = new WorkOrderPowersetServiceClient()) { PagingConfig cfg = new PagingConfig() { PageNo = 0, PageSize = 1, Where = string.Format("PowerName='{0}' AND Key.OrderNumber='{1}'", oemData.PnName, oemData.OrderNumber.ToString().Trim().ToUpper()) }; MethodReturnResult <IList <WorkOrderPowerset> > result = client.Get(ref cfg); if (result.Code == 0 && result.Data != null & result.Data.Count > 0) { dic.Add(result.Data[0].Key.Code); dic.Add(result.Data[0].Key.ItemNo.ToString()); //string iii = dic[0]; return(dic); } } return(null); }
/// <summary> /// 取得班别列表 /// </summary> /// <returns></returns> public IEnumerable <SelectListItem> GetShiftName() { using (ShiftServiceClient client = new ShiftServiceClient()) { PagingConfig cfg = new PagingConfig() { IsPaging = false, Where = "" }; MethodReturnResult <IList <Shift> > result = client.Get(ref cfg); if (result.Code <= 0) { IEnumerable <SelectListItem> lst = from item in result.Data select new SelectListItem() { Text = item.Key, Value = item.Key }; return(lst); } } return(new List <SelectListItem>()); }
public ActionResult GetProductMaterialCode(string q) { using (MaterialServiceClient client = new MaterialServiceClient()) { PagingConfig cfg = new PagingConfig() { IsPaging = false, Where = string.Format("Key LIKE '{0}%' AND IsProduct='1' AND Status='1'", q) }; MethodReturnResult <IList <Material> > result = client.Get(ref cfg); if (result.Code <= 0) { return(Json(from item in result.Data select new { @label = string.Format("{0}[{1}]", item.Key, item.Name), @value = item.Key }, JsonRequestBehavior.AllowGet));; } } return(Json(null, JsonRequestBehavior.AllowGet));; }
// // GET: /ZPVM/Rule/Detail public async Task <ActionResult> Detail(string code) { using (RuleServiceClient client = new RuleServiceClient()) { MethodReturnResult <Rule> result = await client.GetAsync(code); if (result.Code == 0) { RuleViewModel viewModel = new RuleViewModel() { FullPackageQty = result.Data.FullPackageQty, Code = result.Data.Key, Name = result.Data.Name, CalibrationType = result.Data.CalibrationType, PowersetCode = result.Data.PowersetCode, PowerDegree = result.Data.PowerDegree, MinPower = result.Data.MinPower, MaxPower = result.Data.MaxPower, FixCycle = result.Data.FixCycle, CalibrationCycle = result.Data.CalibrationCycle, Description = result.Data.Description, IsUsed = result.Data.IsUsed, CreateTime = result.Data.CreateTime, Creator = result.Data.Creator, Editor = result.Data.Editor, EditTime = result.Data.EditTime }; return(PartialView("_InfoPartial", viewModel)); } else { ModelState.AddModelError("", result.Message); } } return(PartialView("_InfoPartial")); }
public async Task <ActionResult> Save(RouteEnterpriseViewModel model) { using (RouteEnterpriseServiceClient client = new RouteEnterpriseServiceClient()) { RouteEnterprise obj = new RouteEnterprise() { Key = model.Name, Status = model.Status, Description = model.Description, Editor = User.Identity.Name, EditTime = DateTime.Now, CreateTime = DateTime.Now, Creator = User.Identity.Name }; MethodReturnResult rst = await client.AddAsync(obj); if (rst.Code == 0) { rst.Message = string.Format(FMMResources.StringResource.RouteEnterprise_Save_Success , model.Name); } return(Json(rst)); } }
// GET: /FMM/MaterialChestParameter/Modify public async Task <ActionResult> Modify(string productCode) { MaterialChestParameterViewModel viewModel = new MaterialChestParameterViewModel(); using (MaterialChestParameterServiceClient client = new MaterialChestParameterServiceClient()) { MethodReturnResult <MaterialChestParameter> result = await client.GetAsync(productCode); if (result.Code == 0) { viewModel = new MaterialChestParameterViewModel() { ProductCode = result.Data.Key, ColorLimit = result.Data.ColorLimit, GradeLimit = result.Data.GradeLimit, PowerLimit = result.Data.PowerLimit, IscLimit = result.Data.IscLimit, FullChestQty = result.Data.FullChestQty, InChestFullPackageQty = result.Data.InChestFullPackageQty, IsPackagedChest = result.Data.IsPackagedChest, OrderNumberLimit = result.Data.OrderNumberLimit, LastChestMaterialLimit = result.Data.LastChestMaterialLimit, Creator = result.Data.Creator, CreateTime = result.Data.CreateTime, Editor = result.Data.Editor, EditTime = result.Data.EditTime }; return(PartialView("_ModifyPartial", viewModel)); } else { ModelState.AddModelError("", result.Message); } } return(PartialView("_ModifyPartial")); }
public async Task <ActionResult> SaveModify(RouteEnterpriseViewModel model) { using (RouteEnterpriseServiceClient client = new RouteEnterpriseServiceClient()) { MethodReturnResult <RouteEnterprise> result = await client.GetAsync(model.Name); if (result.Code == 0) { result.Data.Status = model.Status; result.Data.Description = model.Description; result.Data.Editor = User.Identity.Name; result.Data.EditTime = DateTime.Now; MethodReturnResult rst = await client.ModifyAsync(result.Data); if (rst.Code == 0) { rst.Message = string.Format(FMMResources.StringResource.RouteEnterprise_SaveModify_Success , model.Name); } return(Json(rst)); } return(Json(result)); } }
public async Task <ActionResult> Save(PointViewModel model) { using (PointServiceClient client = new PointServiceClient()) { Point obj = new Point() { Key = Convert.ToString(Guid.NewGuid()), GroupName = model.GroupName.ToUpper(), ActionName = model.ActionName, CategoryName = model.CategoryName, EquipmentCode = model.EquipmentCode, MaterialCode = model.MaterialCode, MaterialType = model.MaterialType, ProductionLineCode = model.ProductionLineCode, RouteEnterpriseName = model.RouteEnterpriseName, RouteName = model.RouteName, RouteOperationName = model.RouteOperationName, RouteStepName = model.RouteStepName, SamplingPlanName = model.SamplingPlanName, Status = model.Status, Description = model.Description, Editor = User.Identity.Name, EditTime = DateTime.Now, CreateTime = DateTime.Now, Creator = User.Identity.Name }; MethodReturnResult rst = await client.AddAsync(obj); if (rst.Code == 0) { rst.Message = string.Format(EDCResources.StringResource.Point_Save_Success , model.GroupName); } return(Json(rst)); } }
// // GET: /PPM/WorkOrderRoute/Modify public async Task <ActionResult> Modify(string orderNumber, int itemNo) { WorkOrderRouteViewModel viewModel = new WorkOrderRouteViewModel(); using (WorkOrderRouteServiceClient client = new WorkOrderRouteServiceClient()) { MethodReturnResult <WorkOrderRoute> result = await client.GetAsync(new WorkOrderRouteKey() { OrderNumber = orderNumber, ItemNo = itemNo }); if (result.Code == 0) { viewModel = new WorkOrderRouteViewModel() { OrderNumber = result.Data.Key.OrderNumber, ItemNo = result.Data.Key.ItemNo, RouteEnterpriseName = result.Data.RouteEnterpriseName, RouteName = result.Data.RouteName, RouteStepName = result.Data.RouteStepName, IsRework = result.Data.IsRework, CreateTime = result.Data.CreateTime, Creator = result.Data.Creator, Editor = result.Data.Editor, EditTime = result.Data.EditTime }; return(PartialView("_ModifyPartial", viewModel)); } else { ModelState.AddModelError("", result.Message); } } return(PartialView("_ModifyPartial")); }
public IEnumerable <SelectListItem> GetProductionLineList() { //获取用户拥有权限的生产线。 IList <Resource> lstResource = new List <Resource>(); using (UserAuthenticateServiceClient client = new UserAuthenticateServiceClient()) { MethodReturnResult <IList <Resource> > result = client.GetResourceList(HttpContext.Current.User.Identity.Name, ResourceType.ProductionLine); if (result.Code <= 0 && result.Data != null) { lstResource = result.Data; } } IList <ProductionLine> lst = new List <ProductionLine>(); PagingConfig cfg = new PagingConfig() { IsPaging = false }; using (ProductionLineServiceClient client = new ProductionLineServiceClient()) { MethodReturnResult <IList <ProductionLine> > result = client.Get(ref cfg); if (result.Code <= 0 && result.Data != null) { lst = result.Data; } } return(from item in lst where lstResource.Any(m => m.Data.ToUpper() == item.Key.ToUpper()) select new SelectListItem() { Text = string.Format("{0}[{1}]", item.Name, item.Key), Value = item.Key }); }
// // GET: /PPM/WorkOrderRoute/ public async Task <ActionResult> Index(string orderNumber) { using (WorkOrderServiceClient client = new WorkOrderServiceClient()) { MethodReturnResult <WorkOrder> result = await client.GetAsync(orderNumber ?? string.Empty); if (result.Code > 0 || result.Data == null) { return(RedirectToAction("Index", "WorkOrder")); } ViewBag.WorkOrder = result.Data; } using (WorkOrderRouteServiceClient client = new WorkOrderRouteServiceClient()) { await Task.Run(() => { PagingConfig cfg = new PagingConfig() { Where = string.Format(" Key.OrderNumber = '{0}'" , orderNumber) }; MethodReturnResult <IList <WorkOrderRoute> > result = client.Get(ref cfg); if (result.Code == 0) { ViewBag.PagingConfig = cfg; ViewBag.List = result.Data; } }); } return(View(new WorkOrderRouteQueryViewModel() { OrderNumber = orderNumber })); }
public IEnumerable <SelectListItem> GetAttributeName() { using (BaseAttributeServiceClient client = new BaseAttributeServiceClient()) { PagingConfig cfg = new PagingConfig() { IsPaging = false, Where = string.Format("Key.CategoryName='{0}'", "RouteStepAttribute") }; MethodReturnResult <IList <BaseAttribute> > result = client.Get(ref cfg); if (result.Code <= 0) { IEnumerable <SelectListItem> lst = from item in result.Data select new SelectListItem() { Text = item.Key.AttributeName, Value = item.Key.AttributeName }; return(lst); } } return(new List <SelectListItem>()); }
public ActionResult GetHighchartsResult(WIPIVTestDataViewModel model) { DataTable dtIVData = new DataTable(); string strx = string.Empty, stry = string.Empty, strup = string.Empty, strlow = string.Empty; using (WIPIVTestServiceClient client = new WIPIVTestServiceClient()) { MethodReturnResult <DataSet> rst = client.Get(new WIPIVTestGetParameter() { EquipmentCode = AssembleChar(model.EquipmentCode == "Select options" ? "" : model.EquipmentCode), Attr_1 = AssembleChar(model.Attr_1), StartDate = model.StartDate, EndDate = model.EndDate, LineCode = model.LineCode, CalibrationId = model.CalibrationPlateID }); if (rst.Code <= 0 && rst.Data != null && rst.Data.Tables.Count > 0) { dtIVData = rst.Data.Tables[0]; } } if (dtIVData != null && dtIVData.Rows.Count > 0) { sl = AssembleSpline(dtIVData, new WIPIVTestGetParameter() { EquipmentCode = (model.EquipmentCode == "Select options" ? "" : model.EquipmentCode), Attr_1 = (model.Attr_1), StartDate = model.StartDate, EndDate = model.EndDate, LineCode = model.LineCode, CalibrationId = model.CalibrationPlateID }); } return(Json(sl, JsonRequestBehavior.AllowGet)); }