コード例 #1
0
        /// <summary>
        /// 初始化
        /// </summary>
        protected virtual void Init(Neusoft.HISFC.Models.Base.Group groupInfo)
        {
            ArrayList myalItems = groupManager.GetAllItem(groupInfo);

            if (myalItems == null)
            {
                return;
            }

            this.InpatientType = groupInfo.UserType;
            Classes.Function.ShowOrder(this.spread1_Sheet1, myalItems, 1, this.inpatientType);
            this.spread1_Sheet1.Columns.Add(0, 1);
            this.spread1_Sheet1.Columns[0].Label    = "选择";
            this.spread1_Sheet1.Columns[0].CellType = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
            this.spread1_Sheet1.OperationMode       = FarPoint.Win.Spread.OperationMode.RowMode;
            this.spread1_Sheet1.GrayAreaBackColor   = System.Drawing.Color.White;

            for (int i = 1; i < this.spread1_Sheet1.ColumnCount; i++)
            {
                this.spread1_Sheet1.Columns[i].Locked = true;
            }
            this.spread1_Sheet1.Columns[0].Locked = false;
            //默认全部选中
            for (int i = 0; i < this.spread1_Sheet1.RowCount; i++)
            {
                this.spread1_Sheet1.SetValue(i, 0, true, false);
                Neusoft.HISFC.Models.Order.Order order = this.spread1_Sheet1.Rows[i].Tag as Neusoft.HISFC.Models.Order.Order;
                if (order != null && order.ExtendFlag2 == "N")
                {
                    this.spread1_Sheet1.Rows[i].BackColor = Color.Gray;//停用的项目
                    this.spread1_Sheet1.SetValue(i, 0, false, false);
                }
            }
        }
コード例 #2
0
ファイル: Group.cs プロジェクト: ewin66/Management-System
        /// <summary>
        /// 查询科室组套与个人组套
        /// Add By liangjz 2005-10
        /// </summary>
        /// <param name="t">组套类别 门诊/住院</param>
        /// <param name="deptCode">科室代码</param>
        /// <param name="doctCode">医生编码</param>
        /// <returns>成功返回组套列表 失败返回null</returns>
        public ArrayList GetDeptOrderGroup(Neusoft.HISFC.Models.Base.ServiceTypes t, string deptCode, string doctCode)
        {
            string sql = "", sqlWhere = "";

            #region  接口说明
            //0 : 组套ID                                1 : 组套名称                                2 : 组套拼音码
            //3 : 组套助记码                               4 : 1门诊/2住院                             5 : 组套类型,1.医师组套;2.科室组套
            //6 : 科室代码                                7 : 组套医师                                8 : 是否共享,1是,0否
            //9 : 组套备注
            #endregion
            if (this.Sql.GetSql("Manager.Group.Select", ref sql) == -1)
            {
                return(null);
            }
            #region  接口说明
            //医嘱类别 门诊/住院 科室代码 医生编码
            #endregion
            if (this.Sql.GetSql("Manager.Group.Where.2", ref sqlWhere) == -1)
            {
                return(null);
            }
            sql = sql + " " + sqlWhere;
            try
            {
                sql = string.Format(sql, t.GetHashCode().ToString(), deptCode, doctCode);
            }
            catch (Exception ex)
            {
                this.ErrCode = ex.Message;
                this.Err     = "付值出错!" + ex.Message;
                this.WriteErr();
                return(null);
            }
            return(this.myGetGroup(sql));
        }
コード例 #3
0
        protected override void OnLoad(EventArgs e)
        {
            this.tvDoctorGroup1.SelectOrder += new Neusoft.HISFC.Components.Common.Controls.SelectOrderHandler(tvDoctorGroup1_SelectOrder);

            this.cmbGroupName.Text = "";


            this.Activated += new EventHandler(frmOrderGroupManager_Activated);
            this.fpSpread1_Sheet1.CellChanged += new FarPoint.Win.Spread.SheetViewEventHandler(fpSpread1_Sheet1_CellChanged);
            this.rdo3.CheckedChanged          += new EventHandler(radioButton3_CheckedChanged);

            if (this.tvDoctorGroup1.Nodes.Count == 0)
            {
                this.tvDoctorGroup1.Type          = Neusoft.HISFC.Components.Common.Controls.enuType.Order;
                this.tvDoctorGroup1.ShowType      = Neusoft.HISFC.Components.Common.Controls.enuGroupShowType.All;
                this.tvDoctorGroup1.InpatientType = this.inpatientType;
                this.tvDoctorGroup1.Init();
                this.alGroupAll = this.tvDoctorGroup1.AllGroup;
            }

            InitComboBox();
            base.OnLoad(e);
        }
コード例 #4
0
ファイル: Group.cs プロジェクト: ewin66/Management-System
        //{C2922531-DEE7-43a0-AB7A-CDD7C58691BD}
        /// <summary>
        /// 获得所有一级目录
        /// </summary>
        /// <param name="type"></param>
        /// <param name="deptCode"></param>
        /// <param name="docCode"></param>
        /// <returns></returns>
        public ArrayList GetAllFirstLVFolder(Neusoft.HISFC.Models.Base.ServiceTypes type, string deptCode, string docCode)
        {
            string strSql = "";

            if (this.Sql.GetSql("Manager.Group.GetAllFirstLVFolder", ref strSql) == -1)
            {
                return(null);
            }
            strSql = System.String.Format(strSql, type.GetHashCode().ToString(), deptCode, docCode);
            //出错
            if (this.ExecQuery(strSql) < 0)
            {
                return(null);
            }
            ArrayList al = new ArrayList();

            while (this.Reader.Read())
            {
                Neusoft.HISFC.Models.Base.Group group = new Neusoft.HISFC.Models.Base.Group();
                group.ID        = this.Reader[0].ToString();                                                                                    //编码
                group.Name      = this.Reader[1].ToString();                                                                                    //名称
                group.UserType  = (Neusoft.HISFC.Models.Base.ServiceTypes)Neusoft.FrameWork.Function.NConvert.ToInt32(this.Reader[2].ToString());
                group.Dept.ID   = this.Reader[3].ToString();                                                                                    //科室代码
                group.Doctor.ID = this.Reader[4].ToString();                                                                                    //医生代码
                group.Kind      = (Neusoft.HISFC.Models.Base.GroupKinds)Neusoft.FrameWork.Function.NConvert.ToInt32(this.Reader[5].ToString()); //类型
                group.SpellCode = this.Reader[6].ToString();
                group.WBCode    = this.Reader[7].ToString();
                group.IsShared  = Neusoft.FrameWork.Function.NConvert.ToBoolean(this.Reader[8].ToString());
                group.Memo      = this.Reader[9].ToString();  //备注
                group.UserCode  = "F";                        //代表是文件夹
                group.ParentID  = this.Reader[10].ToString(); //上级文件夹编码

                al.Add(group);
            }
            this.Reader.Close();
            return(al);
        }