Exemple #1
0
        //{F8B5A5CE-4BDF-4bcb-A57B-AD635CA0B5AE}
        public static System.Drawing.Color GetPactColor(string pactCode)
        {
            Neusoft.FrameWork.Management.ControlParam ctlMgr = new Neusoft.FrameWork.Management.ControlParam();

            string returnValue = ctlMgr.QueryControlerInfo("Pact" + pactCode);

            return(System.Drawing.Color.FromArgb(Neusoft.FrameWork.Function.NConvert.ToInt32(returnValue)));
        }
Exemple #2
0
        /// <summary>
        /// 通过合同单位编码获得
        /// </summary>
        /// <param name="pactCode">合同单位编码</param>
        /// <returns>成功: 医保接口实例 失败: null</returns>
        public Neusoft.HISFC.BizProcess.Interface.FeeInterface.IMedcare GetInterfaceFromPact(string pactCode)
        {
            Neusoft.FrameWork.Management.ControlParam myCtrl = new Neusoft.FrameWork.Management.ControlParam();
            //Trans为全局量 不需要单独SetTrans
            //if (this.trans != null)
            //{
            //    myCtrl.SetTrans(trans.Trans);
            //}
            Neusoft.HISFC.Models.Base.ControlParam con = myCtrl.QueryControlInfoByName(pactCode);
            if (con == null)
            {
                this.errMsg = "获得调用接口处错!" + myCtrl.Err;

                return(null);
            }

            try
            {
                Assembly      a     = Assembly.LoadFrom(con.ControlerValue);
                System.Type[] types = a.GetTypes();
                foreach (System.Type type in types)
                {
                    if (type.GetInterface("IMedcare") != null)
                    {
                        objInterface = System.Activator.CreateInstance(type);
                    }
                }
            }
            catch (Exception e)
            {
                this.errMsg = e.Message;

                return(null);
            }

            return((Neusoft.HISFC.BizProcess.Interface.FeeInterface.IMedcare)objInterface);
        }
Exemple #3
0
 /// <summary>
 /// 获得是否可以开库存为零的药品
 /// </summary>
 /// <returns></returns>
 public static int GetIsOrderCanNoStock()
 {
     Neusoft.FrameWork.Management.ControlParam controler = new Neusoft.FrameWork.Management.ControlParam();
     return(Neusoft.FrameWork.Function.NConvert.ToInt32(controler.QueryControlerInfo("200001")));
 }