Ejemplo n.º 1
0
 /// <summary>
 /// 可能会用到查询数据库,小心用
 /// </summary>
 /// <param name="charge"></param>
 /// <param name="isLong"></param>
 public static void CheckChargeableOrderType(ref Neusoft.HISFC.Models.Order.OrderType currentType, bool charge)
 {
     if (currentType.IsDecompose)
     {
         CheckChargeableOrderType(ref currentType, charge, LongOrderTypes);
     }
     else
     {
         CheckChargeableOrderType(ref currentType, charge, ShortOrderTypes);
     }
 }
Ejemplo n.º 2
0
 public static void CheckChargeableOrderType(ref Neusoft.HISFC.Models.Order.OrderType currentType, bool charge, System.Collections.ArrayList orderTypes, bool reset)
 {
     //判断当前医嘱收费类型
     if (reset == false && currentType != null)
     {
         if (currentType.IsCharge == charge)
         {
             return;
         }
     }
     //不符合,查找第一个符合的收费类型
     foreach (Neusoft.HISFC.Models.Order.OrderType obj in orderTypes)
     {
         if (obj.IsCharge == charge)
         {
             currentType = obj.Clone();
             return;
         }
     }
 }
Ejemplo n.º 3
0
        public ArrayList GetList()
        {
            // TODO:  添加 Frequency.GetList 实现
            string sql = "";

            if (this.Sql.GetSql("Manager.OrderType.GetList.1", ref sql) == -1)
            {
                return(null);
            }
//			try
//			{
//				sql=string.Format(sql);
//			}
//			catch{return null;}
            if (this.ExecQuery(sql) == -1)
            {
                return(null);
            }
            ArrayList al = new ArrayList();

            try
            {
                while (this.Reader.Read())
                {
                    Neusoft.HISFC.Models.Order.OrderType obj = new Neusoft.HISFC.Models.Order.OrderType();

                    try
                    {
                        obj.ID = this.Reader[0].ToString();                      //id频次id
                    }
                    catch
                    {}
                    try
                    {
                        obj.Name = this.Reader[1].ToString();                       //name频次名称
                    }
                    catch
                    {}
                    try
                    {
                        obj.IsCharge = Neusoft.FrameWork.Function.NConvert.ToBoolean(this.Reader[2].ToString());                       //
                    }
                    catch
                    {}
                    try
                    {
                        obj.IsConfirm = Neusoft.FrameWork.Function.NConvert.ToBoolean(this.Reader[3].ToString());
                    }
                    catch
                    {}
                    try
                    {
                        obj.IsDecompose = Neusoft.FrameWork.Function.NConvert.ToBoolean(this.Reader[4].ToString());                      //
                    }
                    catch
                    {}
                    try
                    {
                        obj.IsNeedPharmacy = Neusoft.FrameWork.Function.NConvert.ToBoolean(this.Reader[5].ToString());                        //
                    }
                    catch
                    {}
                    try
                    {
                        obj.IsPrint = Neusoft.FrameWork.Function.NConvert.ToBoolean(this.Reader[6].ToString());                       //
                    }
                    catch
                    {}
                    al.Add(obj);
                }
                return(al);
            }
            catch { return(null); }
        }
Ejemplo n.º 4
0
 private int GetStrings(object obj, ref string strSql)
 {
     #region "接口"
     //<!--0 id医嘱类型id, 1 name医嘱类型, 2 是否记费, 3 确认, 4 是否分解, 5 是否需要摆药,6 是否打印,
     //	 7 operator id, 8 operator name,9 operator time -->
     #endregion
     Neusoft.HISFC.Models.Order.OrderType o = obj as Neusoft.HISFC.Models.Order.OrderType;
     try
     {
         string[] s = new string[10];
         try
         {
             s[0] = o.ID;                   //id频次id
         }
         catch {}
         try
         {
             s[1] = o.Name;                   //name频次名称
         }
         catch {}
         try
         {
             s[2] = System.Convert.ToInt16(o.IsCharge).ToString();                  //是否记费
         }
         catch {}
         try
         {
             s[3] = System.Convert.ToInt16(o.IsConfirm).ToString();                   //确认
         }
         catch {}
         try
         {
             s[4] = System.Convert.ToInt16(o.IsDecompose).ToString();                   //是否分解
         }
         catch {}
         try
         {
             s[5] = System.Convert.ToInt16(o.IsNeedPharmacy).ToString();                  //是否需要摆药
         }
         catch {}
         try
         {
             s[6] = System.Convert.ToInt16(o.IsPrint).ToString();                  //是否打印
         }
         catch {}
         try
         {
             s[7] = this.Operator.ID;                   //operator id
         }
         catch {}
         try
         {
             s[8] = this.Operator.Name;                   //operator name
         }
         catch {}
         try
         {
             s[9] = this.GetSysDate();                  //operator time
         }
         catch {}
         strSql = string.Format(strSql, s);
     }
     catch (Exception ex)
     {
         this.Err = "赋值时候出错!" + ex.Message;
         this.WriteErr();
         return(-1);
     }
     return(0);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// 根据医嘱类别判断,是否自动计算总量
 /// </summary>
 /// <param name="orderType"></param>
 /// <returns></returns>
 public static bool IsAutoCalTotal(Neusoft.HISFC.Models.Order.OrderType orderType)
 {
     return(false);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// 是否允许开立
 /// </summary>
 /// <param name="patient"></param>
 /// <param name="order"></param>
 /// <returns></returns>
 public static bool IsPermission(Neusoft.HISFC.Models.RADT.PatientInfo patient
                                 , Neusoft.HISFC.Models.Order.OrderType orderType
                                 , Neusoft.HISFC.Models.Base.Item item)
 {
     return(false);
 }