Exemplo n.º 1
0
 /// <summary>
 /// 根据参数决定是否初始化属性默认值
 /// </summary>
 /// <param name="isInitDefaultValue">一个bool值,表示是否初始化默认值</param>
 private BigClassBase(bool isInitDefaultValue)
 {
     if (isInitDefaultValue)
     {
         _bigClassId = Guid.NewGuid();
     }
 }
Exemplo n.º 2
0
 /// <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();
     }
 }
Exemplo n.º 4
0
 /// <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;
     }
 }
Exemplo n.º 5
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
                       ));
        }
Exemplo n.º 7
0
        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));
        }
Exemplo n.º 8
0
        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));
        }
Exemplo n.º 9
0
        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
                       ));
        }
Exemplo n.º 10
0
 partial void IndexOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, Sfw.Sabp.Mca.Web.ViewModels.QuestionViewModel model, bool?continueButton, System.Guid?chosenOption, System.Guid assessmentId);
Exemplo n.º 11
0
        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
                       ));
        }
Exemplo n.º 12
0
 public ANotificationQuery Id(System.Guid?expect)
 {
     Id(AGuid.EqualTo(expect));
     return(this);
 }
Exemplo n.º 13
0
 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());
     }
 }
Exemplo n.º 14
0
 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
                       ));
        }
Exemplo n.º 16
0
 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));
 }
Exemplo n.º 17
0
        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()));
        }
Exemplo n.º 18
0
 public static VSM.Data.Objects.M_SSID SelectSingle(System.Guid?sSID)
 {
     return(new M_SSIDFactory().SelectSingle(sSID));
 }
Exemplo n.º 19
0
        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
                       ));
        }
Exemplo n.º 20
0
 internal Map GetMap(System.Guid?ID)
 {
     return(maps.FirstOrDefault(set => set.UID == ID));
 }
Exemplo n.º 21
0
 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));
 }
Exemplo n.º 22
0
        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);
        }
Exemplo n.º 23
0
 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));
 }
Exemplo n.º 24
0
 partial void DeleteOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, System.Guid?id);
Exemplo n.º 25
0
        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()));
        }
Exemplo n.º 26
0
 partial void DetailReportOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, System.Guid?id, Clinic.Core.Models.Report.ReportParameterViewModel viewModel);
Exemplo n.º 27
0
        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);
        }
Exemplo n.º 28
0
 /// <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;
 }
Exemplo n.º 29
0
 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));
 }
Exemplo n.º 30
0
 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));
 }
Exemplo n.º 31
0
        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]);
        }
Exemplo n.º 32
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));
 }
Exemplo n.º 33
0
 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
                       ));
        }
Exemplo n.º 35
0
        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
                       ));
        }