/// <summary> /// 根据参数决定是否初始化属性默认值 /// </summary> /// <param name="isInitDefaultValue">一个bool值,表示是否初始化默认值</param> private BigClassBase(bool isInitDefaultValue) { if (isInitDefaultValue) { _bigClassId = Guid.NewGuid(); } }
/// <summary> /// 根据参数决定是否初始化属性默认值 /// </summary> /// <param name="isInitDefaultValue">一个bool值,表示是否初始化默认值</param> private SmallClassBase(bool isInitDefaultValue) { if (isInitDefaultValue) { _smallClassId = Guid.NewGuid(); } }
/// <summary> /// 根据参数决定是否初始化属性默认值 /// </summary> /// <param name="isInitDefaultValue">一个bool值,表示是否初始化默认值</param> private ItemInCustomSmallTypeBase(bool isInitDefaultValue) { if (isInitDefaultValue) { _itemInCustomSmallTypeId = Guid.NewGuid(); } }
/// <summary> /// 根据参数决定是否初始化属性默认值 /// </summary> /// <param name="isInitDefaultValue">一个bool值,表示是否初始化默认值</param> private ItemBase(bool isInitDefaultValue) { if (isInitDefaultValue) { _itemId = Guid.NewGuid(); _selectedCount = 0; _selectSeed = 5; _isImport = 0; _isExclude = 0; _onceOKCount = 0; } }
public static VSM.Data.Objects.M_Kiosk_Owner_Branch SelectSingle(System.Guid?kioskOwner_Branch_ID) { return(new M_Kiosk_Owner_BranchFactory().SelectSingle(kioskOwner_Branch_ID)); }
public ActionResult CrudeProductGatherSourceCreate(System.Guid?productGatherId, System.Guid?userId) { var contract = new CrudeProductGatherSourceContract(); if (productGatherId != null) { contract.ProductGatherId = (System.Guid)productGatherId; } if (userId != null) { contract.UserId = (System.Guid)userId; } ViewBag.ProductGatherSourceTypeRcd = new SelectList(new CrudeProductGatherSourceTypeRefServiceClient().FetchAll(), "ProductGatherSourceTypeRcd", "ProductGatherSourceTypeName", contract.ProductGatherSourceTypeRcd ); if (userId == null) { contract.UserId = new System.Guid("{FFFFFFFF-5555-5555-5555-FFFFFFFFFFFF}"); } ViewBag.DefaultUserName = new CrudeDefaultUserServiceClient().FetchByDefaultUserId(contract.UserId).DefaultUserName; contract.DateTime = DateTime.UtcNow; return(View( "~/Views/Crude/Product/CrudeProductGatherSource/CrudeProductGatherSourceCreate.cshtml", contract )); }
public override System.Threading.Tasks.Task <System.Web.Mvc.ActionResult> DetailReport(System.Guid?id, Clinic.Core.Models.Report.ReportParameterViewModel viewModel) { var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.DetailReport); ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id); ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "viewModel", viewModel); DetailReportOverride(callInfo, id, viewModel); return(System.Threading.Tasks.Task.FromResult(callInfo as System.Web.Mvc.ActionResult)); }
public override System.Threading.Tasks.Task <System.Web.Mvc.ActionResult> Delete(System.Guid?id) { var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Delete); ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id); DeleteOverride(callInfo, id); return(System.Threading.Tasks.Task.FromResult(callInfo as System.Web.Mvc.ActionResult)); }
public ActionResult CrudeFinancialCouponCreate(System.Guid?financialCurrencyId, System.Guid?userId) { var contract = new CrudeFinancialCouponContract(); if (financialCurrencyId != null) { contract.FinancialCurrencyId = (System.Guid)financialCurrencyId; } if (userId != null) { contract.UserId = (System.Guid)userId; } ViewBag.FinancialCouponTypeRcd = new SelectList(new CrudeFinancialCouponTypeRefServiceClient().FetchAll(), "FinancialCouponTypeRcd", "FinancialCouponTypeName", contract.FinancialCouponTypeRcd ); ViewBag.FinancialCurrencyId = new SelectList(new CrudeFinancialCurrencyServiceClient().FetchAll(), "FinancialCurrencyId", "FinancialCurrencyTypeName", contract.FinancialCurrencyId ); contract.ValidFromDateTime = DateTime.UtcNow; contract.ValidUntilDateTime = DateTime.UtcNow; if (userId == null) { contract.UserId = new System.Guid("{FFFFFFFF-5555-5555-5555-FFFFFFFFFFFF}"); } ViewBag.DefaultUserName = new CrudeDefaultUserServiceClient().FetchByDefaultUserId(contract.UserId).DefaultUserName; contract.DateTime = DateTime.UtcNow; return(View( "~/Views/Crude/Financial/CrudeFinancialCoupon/CrudeFinancialCouponCreate.cshtml", contract )); }
partial void IndexOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, Sfw.Sabp.Mca.Web.ViewModels.QuestionViewModel model, bool?continueButton, System.Guid?chosenOption, System.Guid assessmentId);
public ActionResult CrudeFlightScheduleSegmentCreate(System.Guid?flightScheduleId, System.Guid?departureAirportId, System.Guid?arrivalAirportId, System.Guid?userId) { var contract = new CrudeFlightScheduleSegmentContract(); if (flightScheduleId != null) { contract.FlightScheduleId = (System.Guid)flightScheduleId; } if (departureAirportId != null) { contract.DepartureAirportId = (System.Guid)departureAirportId; } if (arrivalAirportId != null) { contract.ArrivalAirportId = (System.Guid)arrivalAirportId; } if (userId != null) { contract.UserId = (System.Guid)userId; } ViewBag.DepartureAirportId = new SelectList(new CrudeAirportServiceClient().FetchAll(), "AirportId", "AirportName", contract.DepartureAirportId ); ViewBag.ArrivalAirportId = new SelectList(new CrudeAirportServiceClient().FetchAll(), "AirportId", "AirportName", contract.ArrivalAirportId ); if (userId == null) { contract.UserId = new System.Guid("{FFFFFFFF-5555-5555-5555-FFFFFFFFFFFF}"); } ViewBag.DefaultUserName = new CrudeDefaultUserServiceClient().FetchByDefaultUserId(contract.UserId).DefaultUserName; contract.DateTime = DateTime.UtcNow; return(View( "~/Views/Crude/Flight/CrudeFlightScheduleSegment/CrudeFlightScheduleSegmentCreate.cshtml", contract )); }
public ANotificationQuery Id(System.Guid?expect) { Id(AGuid.EqualTo(expect)); return(this); }
public List <SPE_OBTIENE_EO_PREGUNTAS_ABIERTAS_CUESTIONARIO_Result> ObtenerCuestionarioPreAbiertas(int?pIdEvaluador = null, int?pIdPeriodo = null, System.Guid?pFlEvaluador = null) { using (context = new SistemaSigeinEntities()) { return(context.SPE_OBTIENE_EO_PREGUNTAS_ABIERTAS_CUESTIONARIO(pIdEvaluador, pIdPeriodo, pFlEvaluador).ToList()); } }
public static VSM.Data.Objects.M_Kiosk SelectSingle(System.Guid?kiosk_ID) { return(new M_KioskFactory().SelectSingle(kiosk_ID)); }
public ActionResult CrudeFinancialSpecialServiceCreate(System.Guid?serviceSpecialServiceRequestId, System.Guid?financialCurrencyId, System.Guid?userId) { var contract = new CrudeFinancialSpecialServiceContract(); if (serviceSpecialServiceRequestId != null) { contract.ServiceSpecialServiceRequestId = (System.Guid)serviceSpecialServiceRequestId; } if (financialCurrencyId != null) { contract.FinancialCurrencyId = (System.Guid)financialCurrencyId; } if (userId != null) { contract.UserId = (System.Guid)userId; } ViewBag.ServiceSpecialServiceRequestId = new SelectList(new CrudeServiceSpecialServiceRequestServiceClient().FetchAll(), "ServiceSpecialServiceRequestId", "ServiceSpecialServiceRequestName", contract.ServiceSpecialServiceRequestId ); ViewBag.FinancialCurrencyId = new SelectList(new CrudeFinancialCurrencyServiceClient().FetchAll(), "FinancialCurrencyId", "FinancialCurrencyTypeName", contract.FinancialCurrencyId ); if (userId == null) { contract.UserId = new System.Guid("{FFFFFFFF-5555-5555-5555-FFFFFFFFFFFF}"); } ViewBag.DefaultUserName = new CrudeDefaultUserServiceClient().FetchByDefaultUserId(contract.UserId).DefaultUserName; contract.DateTime = DateTime.UtcNow; return(View( "~/Views/Crude/Financial/CrudeFinancialSpecialService/CrudeFinancialSpecialServiceCreate.cshtml", contract )); }
public List <VSM.Data.Objects.M_SSID> Select(System.Guid?sSID, string sSID_CODE, string sSID_Name, string radiusServer_Code, string radiusServer_RadiusServer_Name, System.Guid?kioskOwner_ID, string kioskOwner_KioskOwner_Code, bool?item_Flag, string createdBy, DateTime?createdOn, string modifiedBy, DateTime?modifiedOn) { return(Select(sSID, sSID_CODE, sSID_Name, radiusServer_Code, radiusServer_RadiusServer_Name, kioskOwner_ID, kioskOwner_KioskOwner_Code, item_Flag, createdBy, createdOn, modifiedBy, modifiedOn, null, Int32.MaxValue, 0, SelectView)); }
protected virtual PageRequest CreateRequest(System.Guid?sSID, string sSID_CODE, string sSID_Name, string radiusServer_Code, string radiusServer_RadiusServer_Name, System.Guid?kioskOwner_ID, string kioskOwner_KioskOwner_Code, bool?item_Flag, string createdBy, DateTime?createdOn, string modifiedBy, DateTime?modifiedOn, string sort, int maximumRows, int startRowIndex) { List <string> filter = new List <string>(); if (sSID.HasValue) { filter.Add(("SSID:=" + sSID.Value.ToString())); } if (!(String.IsNullOrEmpty(sSID_CODE))) { filter.Add(("SSID_CODE:*" + sSID_CODE)); } if (!(String.IsNullOrEmpty(sSID_Name))) { filter.Add(("SSID_Name:*" + sSID_Name)); } if (!(String.IsNullOrEmpty(radiusServer_Code))) { filter.Add(("RadiusServer_Code:*" + radiusServer_Code)); } if (!(String.IsNullOrEmpty(radiusServer_RadiusServer_Name))) { filter.Add(("RadiusServer_RadiusServer_Name:*" + radiusServer_RadiusServer_Name)); } if (kioskOwner_ID.HasValue) { filter.Add(("KioskOwner_ID:=" + kioskOwner_ID.Value.ToString())); } if (!(String.IsNullOrEmpty(kioskOwner_KioskOwner_Code))) { filter.Add(("KioskOwner_KioskOwner_Code:*" + kioskOwner_KioskOwner_Code)); } if (item_Flag.HasValue) { filter.Add(("Item_Flag:=" + item_Flag.Value.ToString())); } if (!(String.IsNullOrEmpty(createdBy))) { filter.Add(("CreatedBy:*" + createdBy)); } if (createdOn.HasValue) { filter.Add(("CreatedOn:=" + createdOn.Value.ToString())); } if (!(String.IsNullOrEmpty(modifiedBy))) { filter.Add(("ModifiedBy:*" + modifiedBy)); } if (modifiedOn.HasValue) { filter.Add(("ModifiedOn:=" + modifiedOn.Value.ToString())); } return(new PageRequest((startRowIndex / maximumRows), maximumRows, sort, filter.ToArray())); }
public static VSM.Data.Objects.M_SSID SelectSingle(System.Guid?sSID) { return(new M_SSIDFactory().SelectSingle(sSID)); }
public ActionResult CrudeServiceCarRentalLinkCreate(System.Guid?serviceCarRentalId, System.Guid?userId) { var contract = new CrudeServiceCarRentalLinkContract(); if (serviceCarRentalId != null) { contract.ServiceCarRentalId = (System.Guid)serviceCarRentalId; } if (userId != null) { contract.UserId = (System.Guid)userId; } ViewBag.ServiceCarRentalId = new SelectList(new CrudeServiceCarRentalServiceClient().FetchAll(), "ServiceCarRentalId", "CarName", contract.ServiceCarRentalId ); ViewBag.LinkTypeRcd = new SelectList(new CrudeLinkTypeRefServiceClient().FetchAll(), "LinkTypeRcd", "LinkTypeName", contract.LinkTypeRcd ); if (userId == null) { contract.UserId = new System.Guid("{FFFFFFFF-5555-5555-5555-FFFFFFFFFFFF}"); } ViewBag.DefaultUserName = new CrudeDefaultUserServiceClient().FetchByDefaultUserId(contract.UserId).DefaultUserName; contract.DateTime = DateTime.UtcNow; return(View( "~/Views/Crude/Service/CrudeServiceCarRentalLink/CrudeServiceCarRentalLinkCreate.cshtml", contract )); }
internal Map GetMap(System.Guid?ID) { return(maps.FirstOrDefault(set => set.UID == ID)); }
public static List <VSM.Data.Objects.M_KioskGroup_KioskID> Select(System.Guid?kioskGroup_ID, string kioskGroup_KioskGroup_Name, System.Guid?kiosk_ID, string kiosk_Kiosk_Code, string kiosk_KioskType_KioskType_Name, string kiosk_Location_Location_Address, string kiosk_Location_KioskOwner_KioskOwner_Code, string createdBy, DateTime?createdOn, string modifiedBy, DateTime?modifiedOn) { return(new M_KioskGroup_KioskIDFactory().Select(kioskGroup_ID, kioskGroup_KioskGroup_Name, kiosk_ID, kiosk_Kiosk_Code, kiosk_KioskType_KioskType_Name, kiosk_Location_Location_Address, kiosk_Location_KioskOwner_KioskOwner_Code, createdBy, createdOn, modifiedBy, modifiedOn)); }
public override System.Web.Mvc.ActionResult Index(Sfw.Sabp.Mca.Web.ViewModels.QuestionViewModel model, bool?continueButton, System.Guid?chosenOption, System.Guid assessmentId) { var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Index); ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "model", model); ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "continueButton", continueButton); ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "chosenOption", chosenOption); ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "assessmentId", assessmentId); IndexOverride(callInfo, model, continueButton, chosenOption, assessmentId); return(callInfo); }
public static VSM.Data.Objects.M_KioskGroup_KioskID SelectSingle(System.Guid?kioskGroup_ID, System.Guid?kiosk_ID) { return(new M_KioskGroup_KioskIDFactory().SelectSingle(kioskGroup_ID, kiosk_ID)); }
partial void DeleteOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, System.Guid?id);
protected virtual PageRequest CreateRequest(System.Guid?kioskGroup_ID, string kioskGroup_KioskGroup_Name, System.Guid?kiosk_ID, string kiosk_Kiosk_Code, string kiosk_KioskType_KioskType_Name, string kiosk_Location_Location_Address, string kiosk_Location_KioskOwner_KioskOwner_Code, string createdBy, DateTime?createdOn, string modifiedBy, DateTime?modifiedOn, string sort, int maximumRows, int startRowIndex) { List <string> filter = new List <string>(); if (kioskGroup_ID.HasValue) { filter.Add(("KioskGroup_ID:=" + kioskGroup_ID.Value.ToString())); } if (!(String.IsNullOrEmpty(kioskGroup_KioskGroup_Name))) { filter.Add(("KioskGroup_KioskGroup_Name:*" + kioskGroup_KioskGroup_Name)); } if (kiosk_ID.HasValue) { filter.Add(("Kiosk_ID:=" + kiosk_ID.Value.ToString())); } if (!(String.IsNullOrEmpty(kiosk_Kiosk_Code))) { filter.Add(("Kiosk_Kiosk_Code:*" + kiosk_Kiosk_Code)); } if (!(String.IsNullOrEmpty(kiosk_KioskType_KioskType_Name))) { filter.Add(("Kiosk_KioskType_KioskType_Name:*" + kiosk_KioskType_KioskType_Name)); } if (!(String.IsNullOrEmpty(kiosk_Location_Location_Address))) { filter.Add(("Kiosk_Location_Location_Address:*" + kiosk_Location_Location_Address)); } if (!(String.IsNullOrEmpty(kiosk_Location_KioskOwner_KioskOwner_Code))) { filter.Add(("Kiosk_Location_KioskOwner_KioskOwner_Code:*" + kiosk_Location_KioskOwner_KioskOwner_Code)); } if (!(String.IsNullOrEmpty(createdBy))) { filter.Add(("CreatedBy:*" + createdBy)); } if (createdOn.HasValue) { filter.Add(("CreatedOn:=" + createdOn.Value.ToString())); } if (!(String.IsNullOrEmpty(modifiedBy))) { filter.Add(("ModifiedBy:*" + modifiedBy)); } if (modifiedOn.HasValue) { filter.Add(("ModifiedOn:=" + modifiedOn.Value.ToString())); } return(new PageRequest((startRowIndex / maximumRows), maximumRows, sort, filter.ToArray())); }
partial void DetailReportOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, System.Guid?id, Clinic.Core.Models.Report.ReportParameterViewModel viewModel);
public int SelectCount(System.Guid?kioskGroup_ID, string kioskGroup_KioskGroup_Name, System.Guid?kiosk_ID, string kiosk_Kiosk_Code, string kiosk_KioskType_KioskType_Name, string kiosk_Location_Location_Address, string kiosk_Location_KioskOwner_KioskOwner_Code, string createdBy, DateTime?createdOn, string modifiedBy, DateTime?modifiedOn, string sort, int maximumRows, int startRowIndex, string dataView) { PageRequest request = CreateRequest(kioskGroup_ID, kioskGroup_KioskGroup_Name, kiosk_ID, kiosk_Kiosk_Code, kiosk_KioskType_KioskType_Name, kiosk_Location_Location_Address, kiosk_Location_KioskOwner_KioskOwner_Code, createdBy, createdOn, modifiedBy, modifiedOn, sort, -1, startRowIndex); request.RequiresMetaData = false; request.RequiresRowCount = true; ViewPage page = ControllerFactory.CreateDataController().GetPage("M_KioskGroup_KioskID", dataView, request); return(page.TotalRowCount); }
/// <summary> /// Initializes a new instance of the PageLog class. /// </summary> /// <param name="name">Name of the page. /// </param> /// <param name="timestamp">Log timestamp, example: /// '2017-03-13T18:05:42Z'. /// </param> /// <param name="sid">When tracking an analytics session, logs can be /// part of the session by specifying this identifier. /// This attribute is optional, a missing value means the session /// tracking is disabled (like when using only error reporting /// feature). /// Concrete types like StartSessionLog or PageLog are always part of a /// session and always include this identifier. /// </param> /// <param name="properties">Additional key/value pair parameters. /// </param> public PageLog(Device device, string name, System.DateTime?timestamp = default(System.DateTime?), System.Guid?sid = default(System.Guid?), IDictionary <string, string> properties = default(IDictionary <string, string>)) : base(device, timestamp, sid, properties) { Name = name; }
public List <VSM.Data.Objects.M_KioskGroup_KioskID> Select(System.Guid?kioskGroup_ID, string kioskGroup_KioskGroup_Name, System.Guid?kiosk_ID, string kiosk_Kiosk_Code, string kiosk_KioskType_KioskType_Name, string kiosk_Location_Location_Address, string kiosk_Location_KioskOwner_KioskOwner_Code, string createdBy, DateTime?createdOn, string modifiedBy, DateTime?modifiedOn) { return(Select(kioskGroup_ID, kioskGroup_KioskGroup_Name, kiosk_ID, kiosk_Kiosk_Code, kiosk_KioskType_KioskType_Name, kiosk_Location_Location_Address, kiosk_Location_KioskOwner_KioskOwner_Code, createdBy, createdOn, modifiedBy, modifiedOn, null, Int32.MaxValue, 0, SelectView)); }
public static List <VSM.Data.Objects.M_Kiosk_Owner_Branch> Select(System.Guid?kioskOwner_Branch_ID, string kioskOwner_Branch_Code, string kioskOwner_Branch_Name, string kioskOwner_Branch_Address, decimal?kioskOwner_Branch_LAT, decimal?kioskOwner_Branch_LONG, bool?item_Flag, string createdBy, DateTime?createdOn, string modifiedBy, DateTime?modifiedOn) { return(new M_Kiosk_Owner_BranchFactory().Select(kioskOwner_Branch_ID, kioskOwner_Branch_Code, kioskOwner_Branch_Name, kioskOwner_Branch_Address, kioskOwner_Branch_LAT, kioskOwner_Branch_LONG, item_Flag, createdBy, createdOn, modifiedBy, modifiedOn)); }
public VSM.Data.Objects.M_KioskGroup_KioskID SelectSingle(System.Guid?kioskGroup_ID, System.Guid?kiosk_ID) { List <VSM.Data.Objects.M_KioskGroup_KioskID> list = Select(kioskGroup_ID, null, kiosk_ID, null, null, null, null, null, null, null, null); if (list.Count == 0) { return(null); } return(list[0]); }
public List <VSM.Data.Objects.M_Kiosk_Owner_Branch> Select(System.Guid?kioskOwner_Branch_ID, string kioskOwner_Branch_Code, string kioskOwner_Branch_Name, string kioskOwner_Branch_Address, decimal?kioskOwner_Branch_LAT, decimal?kioskOwner_Branch_LONG, bool?item_Flag, string createdBy, DateTime?createdOn, string modifiedBy, DateTime?modifiedOn) { return(Select(kioskOwner_Branch_ID, kioskOwner_Branch_Code, kioskOwner_Branch_Name, kioskOwner_Branch_Address, kioskOwner_Branch_LAT, kioskOwner_Branch_LONG, item_Flag, createdBy, createdOn, modifiedBy, modifiedOn, null, Int32.MaxValue, 0, SelectView)); }
public void RestoreFrom(Repayment repayment) { this.Id = repayment.Id; this.Amount = repayment.Amount; this.Notes = repayment.Notes; this.RepayAt = repayment.RepayAt; this.Status = repayment.Status; this._payToAccountId = repayment._payToAccountId; this._fromAccountId = repayment.FromAccountId; this.CompletedAt = repayment.CompletedAt; this.PayToAccount = repayment.PayToAccount; this.PayFromAccount = repayment.PayFromAccount; this.Place = repayment._place; this.DueDate = repayment._dueDate; this.UseAlarm = repayment._useAlarm; this._fromPeople = repayment._fromPeople; this.toPeopleId = repayment.toPeopleId; this.ToPeople = repayment.ToPeople; this.Interset = repayment.interest; this.repaymentRecordType = repayment.RepaymentRecordType; this.BorrowOrLean = repayment.borrowOrLean; this.categoryId = repayment.CategoryId; this.AssociatedCategory = repayment.AssociatedCategory; this.createAt = repayment.CreateAt; this.frequency = repayment.Frequency; this.ExecuteDate = repayment.executeDate; this.OnNotifyPropertyChanged("RepaymentInfoLine"); this.OnNotifyPropertyChanged("RemindingInfo"); }
public ActionResult CrudeCartProductCreate(System.Guid?clientId, System.Guid?productId, System.Guid?financialCurrencyId, System.Guid?sessionId, System.Guid?aspId, System.Guid?userId) { var contract = new CrudeCartProductContract(); if (clientId != null) { contract.ClientId = (System.Guid)clientId; } if (productId != null) { contract.ProductId = (System.Guid)productId; } if (financialCurrencyId != null) { contract.FinancialCurrencyId = (System.Guid)financialCurrencyId; } if (sessionId != null) { contract.SessionId = (System.Guid)sessionId; } if (aspId != null) { contract.AspId = (System.Guid)aspId; } if (userId != null) { contract.UserId = (System.Guid)userId; } ViewBag.ClientId = new SelectList(new CrudeClientServiceClient().FetchAll(), "ClientId", "FirstName", contract.ClientId ); ViewBag.ProductId = new SelectList(new CrudeProductServiceClient().FetchAll(), "ProductId", "ProductName", contract.ProductId ); ViewBag.FinancialCurrencyId = new SelectList(new CrudeFinancialCurrencyServiceClient().FetchAll(), "FinancialCurrencyId", "FinancialCurrencyTypeName", contract.FinancialCurrencyId ); if (userId == null) { contract.UserId = new System.Guid("{FFFFFFFF-5555-5555-5555-FFFFFFFFFFFF}"); } ViewBag.DefaultUserName = new CrudeDefaultUserServiceClient().FetchByDefaultUserId(contract.UserId).DefaultUserName; contract.DateTime = DateTime.UtcNow; return(View( "~/Views/Crude/Cart/CrudeCartProduct/CrudeCartProductCreate.cshtml", contract )); }
public ActionResult ServicePackageCreate(System.Guid?serviceHotelId, System.Guid?serviceSpecialServiceRequestId, System.Guid?serviceCarRentalId, System.Guid?departureAirportId, System.Guid?arrivalAirportId, System.Guid?userId) { var contract = new CrudeServicePackageContract(); if (serviceHotelId != null) { contract.ServiceHotelId = (System.Guid)serviceHotelId; } if (serviceSpecialServiceRequestId != null) { contract.ServiceSpecialServiceRequestId = (System.Guid)serviceSpecialServiceRequestId; } if (serviceCarRentalId != null) { contract.ServiceCarRentalId = (System.Guid)serviceCarRentalId; } if (departureAirportId != null) { contract.DepartureAirportId = (System.Guid)departureAirportId; } if (arrivalAirportId != null) { contract.ArrivalAirportId = (System.Guid)arrivalAirportId; } if (userId != null) { contract.UserId = (System.Guid)userId; } ViewBag.ServiceHotelId = new SelectList(new CrudeServiceHotelServiceClient().FetchAll(), "ServiceHotelId", "HotelName", contract.ServiceHotelId ); ViewBag.ServiceSpecialServiceRequestId = new SelectList(new CrudeServiceSpecialServiceRequestServiceClient().FetchAll(), "ServiceSpecialServiceRequestId", "ServiceSpecialServiceRequestName", contract.ServiceSpecialServiceRequestId ); ViewBag.ServiceCarRentalId = new SelectList(new CrudeServiceCarRentalServiceClient().FetchAll(), "ServiceCarRentalId", "CarName", contract.ServiceCarRentalId ); ViewBag.DepartureAirportId = new SelectList(new CrudeAirportServiceClient().FetchAll(), "AirportId", "AirportName", contract.DepartureAirportId ); ViewBag.ArrivalAirportId = new SelectList(new CrudeAirportServiceClient().FetchAll(), "AirportId", "AirportName", contract.ArrivalAirportId ); if (userId == null) { contract.UserId = new System.Guid("{FFFFFFFF-5555-5555-5555-FFFFFFFFFFFF}"); } ViewBag.DefaultUserName = new CrudeDefaultUserServiceClient().FetchByDefaultUserId(contract.UserId).DefaultUserName; contract.DateTime = DateTime.UtcNow; return(View( MVCHelper.Resolve(Request, "Service", "ServicePackage", "ServicePackageCreate"), contract )); }