示例#1
0
 public OrSuModRtnInfoDTO[] updateOrdStatusInfo(IdVProperty[] id_ors, FDateTime dt_end, String sd_su_or)
 {
     object[] param = new object[] { id_ors, dt_end, sd_su_or };
     si.url = url_r;
     OrSuModRtnInfoDTO[] rtn = si.invokeList <OrSuModRtnInfoDTO>("updateOrdStatusInfo", param);
     return(rtn);
 }
示例#2
0
    public static void DateTimeRerouting()
    {
        var dt = new FDateTime(1, 2, 3);

        FDateTime.get_NowFake_static = () =>
        {
            var hook = CastlePatchedInterceptorRegistry.TryGetStaticHook(typeof(FDateTime), 1);
            if (hook != null)
            {
                var results = hook(new object[0]);

                var retvalue = results[0];
                if (!(retvalue is PassthroughPlaceholder))
                {
                    return((FDateTime)retvalue);
                }
            }

            return(new FDateTime(DateTime.Now.Ticks));
        };

        Assert.AreEqual(1, dt.Year);

        var dtstatic = Substitute.ForStatic <FDateTime>();

        FDateTime.Now.Returns(new FDateTime(2, 3, 4));
        Assert.AreEqual(2, FDateTime.Now.Year);
    }
示例#3
0
        public void setWholeData(OrSrvSplitParamDTO param)
        {
            Debug.WriteLine("helloworld:DiagtreatCardViewModel:setWholeData   后台查询开始:" +
                            DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss fff"));
            DiagTreatViewRntDataDTO diagTreatViewRntData = qryService.getDiagTreatViewData(param);

            Debug.WriteLine("helloworld:DiagtreatCardViewModel:setWholeData  后台查询结束:" +
                            DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss fff"));
            if (param.Dt_split_start == null)
            {
                param.Dt_split_start = diagTreatViewRntData.Dt_start;
            }
            if (param.Dt_split_end == null)
            {
                param.Dt_split_end = diagTreatViewRntData.Dt_end;
            }
            //DiagTreatInit.dtacept = diagTreatViewRntData.Dt_start;
            //DiagTreatInit.enddate = diagTreatViewRntData.Dt_end;
            dtacept = diagTreatViewRntData.Dt_start;
            enddate = diagTreatViewRntData.Dt_end;
            NewCacheUtils.setDate4Dic(param.Dt_split_start.Value, param.Dt_split_end.Value,
                                      diagTreatViewRntData.Mrctmcas);
            NewCacheUtils.writeViewData(diagTreatViewRntData, true);
            Debug.WriteLine("helloworld:DiagtreatCardViewModel:setWholeData  加载缓存结束:" +
                            DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss fff"));
            //var i = 1;
        }
示例#4
0
 internal static void SetTimeNow(FDateTime real, FDateTime logic)
 {
     TimeTick.Last     = TimeTick.Now;
     TimeTick.LastReal = TimeTick.NowReal;
     TimeTick.Now      = logic;
     TimeTick.NowReal  = real;
 }
示例#5
0
 public CiOrderDO[] ciOrderStop(string[] id_ors, FDateTime dt_end)
 {
     object[] param = new object[] { id_ors, dt_end };
     si.url = url_r;
     CiOrderDO[] rtn = si.invokeList <CiOrderDO>("ciOrderStop", param);
     return(rtn);
 }
示例#6
0
 public AsTime(FAssetArchive Ar)
 {
     SourceDateTime = Ar.Read <FDateTime>();
     TimeStyle      = Ar.Read <EDateTimeStyle>();
     TimeZone       = Ar.ReadFString();
     TargetCulture  = Ar.ReadFString();
 }
示例#7
0
 public void judgeBeginEndTimeHasMpTimes(FDateTime begin, FDateTime end, string id_freq)
 {
     if (end == null || begin == null)
     {
         return;
     }
     XapServiceMgr.find <ICiOrdQryService>().judgeBeginEndTimeHasMpTimes(begin, end, id_freq);
 }
示例#8
0
 internal DateTime(PackageReader reader)
 {
     SourceDateTime = new FDateTime(reader);
     DateStyle      = (EDateTimeStyle)reader.ReadByte();
     TimeStyle      = (EDateTimeStyle)reader.ReadByte();
     TimeZone       = reader.ReadFString();
     TargetCulture  = reader.ReadFString();
 }
示例#9
0
 public SkinTestDialog(EmsOrDrug drug, FDateTime dt_act)
 {
     InitializeComponent();
     this.drug                   = drug;
     this.dt_act                 = dt_act;
     xapFormControl.Load        += xapFormControl_Load;
     xapFormControl.FormCreated += new EventHandler(xapFormControl_FormCreated);
 }
示例#10
0
 public SkinTestForm(EmsOrDrug drug, FDateTime dt_act)
 {
     this.Text            = "强制使用说明";
     this.Size            = new Size(470, 180);
     mm                   = new SkinTestDialog(drug, dt_act);
     mm.btnClickEvent    += new EventHandler(mm_btnClickEvent);
     mm.cancelClickEvent += new EventHandler(mm_cancelClickEvent);
     this.Panel           = mm;
 }
        public void DateTimeTest(byte[] rawData, int bitCount)
        {
            var reader     = new NetBitReader(rawData, bitCount);
            var playerName = new FDateTime();

            playerName.Serialize(reader);

            Assert.True(reader.AtEnd());
            Assert.False(reader.IsError);
        }
示例#12
0
            public AsDate(FAssetArchive Ar)
            {
                SourceDateTime = Ar.Read <FDateTime>();
                DateStyle      = Ar.Read <EDateTimeStyle>();
                if (Ar.Ver >= UE4Version.VER_UE4_FTEXT_HISTORY_DATE_TIMEZONE)
                {
                    TimeZone = Ar.ReadFString();
                }

                TargetCulture = Ar.ReadFString();
            }
示例#13
0
            internal static unsafe byte /*TODO: text FText*/ Invoke(FDateTime In)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((FDateTime *)(b + 0)) = In;
                Main.GetProcessEvent(KismetTextLibrary.DefaultObject, AsTime_DateTime_ptr, new IntPtr(p));;
                //TODO: text FText ReturnValue
                return(UObject.NotImplemented <byte>() /*TODO: text FText*/);
            }
        }
示例#14
0
        public List<Reportlab> getlisRptList(string idpat,string dts)
        {
            FDateTime tmp = new FDateTime(dts);
            DateTime dt = (tmp.ToTarget).AddDays(100);
            var dt2 = new DateTime(dt.Year, dt.Month, dt.Day);
            var list = new List<Reportlab>();
            CiRptLabItmDO[] items = xapFormControl1.GetSelected<CiRptLabItmDO>("reportitem");
            if (idpat != null)
            {
                list = model.getLabRpts4TreatView(idpat,dt2,  items);
            }

            return list;
        }
示例#15
0
 public object GetValue()
 {
     return(Value switch
     {
         UObject uObject => uObject.GetJsonDict(),
         FAssetData fAssetData => fAssetData.GetValue(),
         FAssetDataTagMapSharedView fAssetDataTagMapSharedView => fAssetDataTagMapSharedView.Map,
         FAssetIdentifier fAssetIdentifier => fAssetIdentifier.GetValue(),
         FAssetPackageData fAssetPackageData => fAssetPackageData.GetValue(),
         FGameplayTagContainer fGameplayTagContainer => fGameplayTagContainer.GetValue(),
         FSoftObjectPath fSoftObjectPath => fSoftObjectPath.GetValue(),
         FDateTime fDateTime => fDateTime.Ticks,
         FGuid fGuid => fGuid.Hex,
         _ => Value
     });
            internal static unsafe void Invoke(FDateTime FireDateTime, bool LocalTime, string ActivationEvent)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((FDateTime *)(b + 0)) = FireDateTime;
                *((bool *)(b + 8))      = LocalTime;
                var ActivationEvent_handle = GCHandle.Alloc(ActivationEvent, GCHandleType.Pinned);

                *(IntPtr *)(b + 16)                = ActivationEvent_handle.AddrOfPinnedObject();
                *(int *)(b + IntPtr.Size + 16)     = ActivationEvent.Length;
                *(int *)(b + IntPtr.Size + 4 + 16) = ActivationEvent.Length;
                Main.GetProcessEvent(BlueprintPlatformLibrary.DefaultObject, ScheduleLocalNotificationBadgeAtTime_ptr, new IntPtr(p));;
                ActivationEvent_handle.Free();
            }
        }
示例#17
0
        /// <summary>
        /// 查询就诊医嘱
        /// </summary>
        public void Reload()
        {
            if (string.IsNullOrEmpty(this.id_en) || string.IsNullOrEmpty(this.code_entp))
            {
                if (this.xapList != null)
                {
                    this.xapList.Clear();
                }
                return;
            }

            // 获取服务类型显示名称
            if (sdSrvtpDic.Count == 0)
            {
                sdSrvtpDic = this.GetSdSrvtpDic();
            }

            CiOrderDO[] ciOrders = this.orderItemMService.find(getSearchSql(), " a0.createdtime  " + OrderSequenceModel, FBoolean.False);

            ciOrders.ToList().ForEach(p =>
            {
                p.Str_long = p.Fg_long.Value == true ? "长期" : "临时";
                if (p.Emp_stop_name == null || p.Emp_stop_name == "")
                {
                    p.Dt_end = null;
                } //如果没有停止医生 则医嘱列表停止时间 不显示 王琦需求
                if (!p.Fg_long.Value)
                {
                    p.Emp_stop_name = null;
                }
                if (!string.IsNullOrEmpty(p.Id_emp_sign) && !p.Id_emp_sign.Equals(p.Id_emp_or))
                {
                    p.Emp_sign_name = p.Emp_sign_name + "/" + p.Emp_phy_name;
                }
                else
                {
                    p.Emp_sign_name = p.Emp_phy_name;
                }
            });
            xapList = new XapDataList <CiOrderDO>(orderItemMService, ciOrders);
            //设定医嘱状态
            bool isOp = this.code_entp.Equals("00") ? true : false;

            logic.setOrderDisplayStatus(xapList, isOp);
            this.stoptime = CommonExtentions.NowTime(this);
        }
示例#18
0
            internal static unsafe byte /*TODO: text FText*/ Invoke(FDateTime InDateTime, string InTimeZone)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((FDateTime *)(b + 0)) = InDateTime;
                var InTimeZone_handle = GCHandle.Alloc(InTimeZone, GCHandleType.Pinned);

                *(IntPtr *)(b + 8)                = InTimeZone_handle.AddrOfPinnedObject();
                *(int *)(b + IntPtr.Size + 8)     = InTimeZone.Length;
                *(int *)(b + IntPtr.Size + 4 + 8) = InTimeZone.Length;
                Main.GetProcessEvent(KismetTextLibrary.DefaultObject, AsTimeZoneTime_DateTime_ptr, new IntPtr(p));;
                InTimeZone_handle.Free();
                //TODO: text FText ReturnValue
                return(UObject.NotImplemented <byte>() /*TODO: text FText*/);
            }
        }
示例#19
0
            internal static unsafe bool Invoke(IntPtr obj, FDateTime Actual, EComparisonMethod ShouldBe, FDateTime Expected, string What, UObject ContextObject)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((FDateTime *)(b + 0)) = Actual;
                *(b + 8) = (byte)ShouldBe;
                *((FDateTime *)(b + 16)) = Expected;
                var What_handle = GCHandle.Alloc(What, GCHandleType.Pinned);

                *(IntPtr *)(b + 24)                = What_handle.AddrOfPinnedObject();
                *(int *)(b + IntPtr.Size + 24)     = What.Length;
                *(int *)(b + IntPtr.Size + 4 + 24) = What.Length;
                *((IntPtr *)(b + 40))              = ContextObject;
                Main.GetProcessEvent(obj, AssertValue_DateTime_ptr, new IntPtr(p));;
                What_handle.Free();
                return(*((bool *)(b + 48)));
            }
        }
示例#20
0
        /// <summary>
        /// 门诊撤回
        /// </summary>
        /// <param name="orders"></param>
        /// <param name="code"></param>
        /// <param name="id"></param>
        public CiOrderDO[] OPOnUpdateSu(CiOrderDO[] orders, string code, string id)
        {
            String[] id_ors = new string[orders.Count()];
            int      i      = 0;

            foreach (CiOrderDO order in orders)
            {
                id_ors[i] = order.Id_or;
                i++;
            }

            FDateTime fa = new FDateTime();

            fa = this.stoptime;
            if (fa == null)
            {
                fa = LogicEx.GetInstance().GetSystemDateTime();
            }
            return(this.maintainService.ciOrderSignBack(id_ors, id));
        }
示例#21
0
        /// <summary>
        /// 住院
        /// </summary>
        /// <param name="orders"></param>
        /// <param name="code"></param>
        /// <param name="id"></param>
        public void OnUpdateSu(CiOrderDO[] orders, string code, string id)
        {
            List <IdVProperty> idVdoList = new List <IdVProperty>();

            foreach (CiOrderDO order in orders)
            {
                IdVProperty idVdo = new IdVProperty();
                idVdo.Id  = order.Id_or;
                idVdo.Ver = order.Sv;
                idVdoList.Add(idVdo);
            }

            FDateTime fa = new FDateTime();

            fa = this.stoptime;
            if (fa == null)
            {
                fa = LogicEx.GetInstance().GetSystemDateTime();
            }
            this.maintainService.updateOrdStatusInfo(idVdoList.ToArray(), fa, code);
        }
            internal static unsafe void Invoke(FDateTime FireDateTime, bool LocalTime, byte Title /*TODO: text FText */, byte Body /*TODO: text FText */, byte Action /*TODO: text FText */, string ActivationEvent)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((FDateTime *)(b + 0)) = FireDateTime;
                *((bool *)(b + 8))      = LocalTime;
                throw new NotImplementedException(); //TODO: text FText Title
                throw new NotImplementedException(); //TODO: text FText Body
                throw new NotImplementedException(); //TODO: text FText Action
                var ActivationEvent_handle = GCHandle.Alloc(ActivationEvent, GCHandleType.Pinned);

                *(IntPtr *)(b + 88)                = ActivationEvent_handle.AddrOfPinnedObject();
                *(int *)(b + IntPtr.Size + 88)     = ActivationEvent.Length;
                *(int *)(b + IntPtr.Size + 4 + 88) = ActivationEvent.Length;
                Main.GetProcessEvent(BlueprintPlatformLibrary.DefaultObject, ScheduleLocalNotificationAtTime_ptr, new IntPtr(p));;
                //TODO: text FText Title
                //TODO: text FText Body
                //TODO: text FText Action
                ActivationEvent_handle.Free();
            }
        }
示例#23
0
 /// <summary>
 ///     获取缓存数据
 /// </summary>
 public void writeViewData(DiagTreatKeyPointRntDataDTO[] keylist, bool flag)
 {
     //    var st = new DateTime(start.Year, start.Month, start.Day);
     if (flag)
     {
         var f = new List <FDate>();
         if (Cache == null)
         {
             Cache = new KeyPointCacheTotal();
         }
         Cache.CacheList.Clear();
         Cache.CacheList.Add(keylist[0]);
         f.Add(keylist[0].Dt_keypoint);
         FDateTime dt = DateTime.Now;
         FDate     dd = dt.ToTarget.Date;
         foreach (DiagTreatKeyPointRntDataDTO dataDto in keylist)
         {
             if (!Cache.CacheList.Contains(dataDto))
             {
                 if (dd.ToString() == dataDto.Dt_keypoint.ToString())
                 {
                     Cache.CacheList.Add(dataDto);
                     f.Add(dataDto.Dt_keypoint);
                 }
                 else
                 {
                     if ((dataDto.Obsdata != null && dataDto.Obsdata.Count > 0) ||
                         (dataDto.Labdata != null && dataDto.Labdata.Count > 0))
                     {
                         Cache.CacheList.Add(dataDto);
                         f.Add(dataDto.Dt_keypoint);
                     }
                 }
             }
         }
         //        this.Cache.KeyPointList = f.OrderBy(x => x).ToList();
         Cache.KeyPointList = f;
     }
 }
示例#24
0
        /// <summary>
        /// 设置医嘱生效时间、停止时间
        /// </summary>
        /// <param name="ordDataDTO"></param>
        /// <param name="ordPrintDO"></param>
        private void setOrdPrintDatetime(OrdPrintDataDTO ordDataDTO, OrdPrintDO ordPrintDO)
        {
            // 设置医嘱的生效时间
            FDateTime dtEffe = ordPrintDO.Dt_effe;

            if (dtEffe != null)
            {
                DateTime dateTime = dtEffe.ToTarget;
                ordPrintDO.Dt_effe_m = dateTime.Month.ToString();
                ordPrintDO.Dt_effe_d = dateTime.Day.ToString();
                ordPrintDO.Dt_effe_t = dateTime.TimeOfDay.ToString();
            }

            // 判断是否需要打印签字人(签署医生、核对护士)
            if (cfgViewModel.IsPrintSignatory())
            {
                BeanUtils.SetProerties(ordDataDTO, ordPrintDO, propertiesSign);
            }

            // 当停止核对结束后打印停止时间
            if (ordPrintDO.Fg_chk_stop == FBoolean.True)
            {
                // 设置医嘱的停止时间
                ordPrintDO.Dt_end = ordDataDTO.Dt_end;
                FDateTime dtEnd    = ordPrintDO.Dt_end;
                DateTime  dateTime = dtEnd.ToTarget;

                ordPrintDO.Dt_end_m = dateTime.Month.ToString();
                ordPrintDO.Dt_end_d = dateTime.Day.ToString();
                ordPrintDO.Dt_end_t = dateTime.TimeOfDay.ToString();

                // 判断是否需要打印签字人(停止医生、停止核对护士)
                if (cfgViewModel.IsPrintSignatory())
                {
                    BeanUtils.SetProerties(ordDataDTO, ordPrintDO, propertiesSignStop);
                }
            }
        }
示例#25
0
/// <summary>Converts a passed in date & time to a text, formatted as a date using an invariant timezone. This will use the given date & time as-is, so it's assumed to already be in the correct timezone.</summary>
        public static string AsDate_DateTime(FDateTime InDateTime)
        {
            string ___ret = AsDate_DateTime(IntPtr.Zero, ref InDateTime);

            return(___ret);
        }
示例#26
0
 extern static string AsDate_DateTime(IntPtr _this, ref FDateTime InDateTime);
示例#27
0
/// <summary>Converts a passed in date & time to a text, formatted as a date using the given timezone (default is the local timezone). This will convert the given date & time from UTC to the given timezone (taking into account DST).</summary>
        public static string AsTimeZoneDate_DateTime(FDateTime InDateTime, string InTimeZone)
        {
            string ___ret = AsTimeZoneDate_DateTime(IntPtr.Zero, ref InDateTime, InTimeZone);

            return(___ret);
        }
示例#28
0
 extern static string AsTimeZoneDate_DateTime(IntPtr _this, ref FDateTime InDateTime, string InTimeZone);
示例#29
0
 extern static string AsTime_DateTime(IntPtr _this, ref FDateTime In);
示例#30
0
 /// <summary>
 /// Schedule a local notification at a specific time, inLocalTime specifies the current local time or if UTC time should be used
 /// @param FireDateTime The time at which to fire the local notification
 /// @param LocalTime If true the provided time is in the local timezone, if false it is in UTC
 /// @param Title The title of the notification
 /// @param Body The more detailed description of the notification
 /// @param Action The text to be displayed on the slider controller
 /// @param ActivationEvent A string that is passed in the delegate callback when the app is brought into the foreground from the user activating the notification
 /// </summary>
 public extern static void ScheduleLocalNotificationAtTime(FDateTime FireDateTime, bool LocalTime, FText Title, FText Body, FText Action, FString ActivationEvent);