Beispiel #1
0
        /// <summary>
        /// 存组套
        /// {DC0E8BDB-D918-4c14-8474-3D2E6F986A57}
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnSaveGroup_Click(object sender, EventArgs e)
        {
            if (this.Save() == 1)
            {
                Neusoft.HISFC.Components.Common.Forms.frmOrderGroupManager group = new Neusoft.HISFC.Components.Common.Forms.frmOrderGroupManager();
                if (this.isClinic)
                {
                    group.InpatientType = Neusoft.HISFC.Models.Base.ServiceTypes.C;
                }
                else
                {
                    group.InpatientType = Neusoft.HISFC.Models.Base.ServiceTypes.I;
                }

                try
                {
                    group.IsManager = (Neusoft.FrameWork.Management.Connection.Operator as Neusoft.HISFC.Models.Base.Employee).IsManager;
                }
                catch
                { }

                if (this.alOrder.Count > 0)
                {
                    group.alItems = this.alOrder;
                    group.ShowDialog();
                }

                #region {49026086-DCA3-4af4-A064-58F7479C324A}
                this.refreshGroup();
                #endregion
            }
        }
        private void SaveGroup()
        {
            Neusoft.HISFC.Components.Common.Forms.frmOrderGroupManager group = new Neusoft.HISFC.Components.Common.Forms.frmOrderGroupManager();

            try
            {
                group.IsManager = (Neusoft.FrameWork.Management.Connection.Operator as Neusoft.HISFC.Models.Base.Employee).IsManager;
            }
            catch
            { }

            ArrayList al = new ArrayList();

            for (int i = 0; i < this.ucOrder1.fpSpread1.ActiveSheet.Rows.Count; i++)
            {
                if (this.ucOrder1.fpSpread1.ActiveSheet.IsSelected(i, 0))
                {
                    Neusoft.HISFC.Models.Order.Inpatient.Order order = this.ucOrder1.GetObjectFromFarPoint(i, this.ucOrder1.fpSpread1.ActiveSheetIndex).Clone();
                    if (order == null)
                    {
                        MessageBox.Show("获得医嘱出错!");
                    }
                    else
                    {
                        string s   = order.Item.Name;
                        string sno = order.Combo.ID;
                        //保存医嘱组套 默认开立时间为 零点
                        order.BeginTime = new DateTime(order.BeginTime.Year, order.BeginTime.Month, order.BeginTime.Day, 0, 0, 0);
                        al.Add(order);
                    }
                }
            }
            if (al.Count > 0)
            {
                group.alItems = al;
                group.ShowDialog();
                this.tvGroup.RefrshGroup();
            }
        }
Beispiel #3
0
        private void SaveGroup()
        {
            Neusoft.HISFC.Components.Common.Forms.frmOrderGroupManager group = new Neusoft.HISFC.Components.Common.Forms.frmOrderGroupManager();

            try
            {
                group.IsManager = (Neusoft.FrameWork.Management.Connection.Operator as Neusoft.HISFC.Models.Base.Employee).IsManager;
            }
            catch
            { }

            ArrayList al = new ArrayList();

            #region 长期临时一起保存组套{11F97F55-F747-4ad9-A74F-086635D5EBD9}
            for (int i = 0; i < this.ucOrder1.fpSpread1.Sheets[0].Rows.Count; i++)//长期医嘱
            {
                //{F4CA5CB3-0C23-4e0e-978D-5B72711A6C86}
                Neusoft.HISFC.Models.Order.Inpatient.Order longorderTemp = this.ucOrder1.GetObjectFromFarPoint(i, 0);
                if (longorderTemp == null)
                {
                    continue;
                }

                //Neusoft.HISFC.Models.Order.Inpatient.Order longorder = this.ucOrder1.GetObjectFromFarPoint(i, 0).Clone();
                Neusoft.HISFC.Models.Order.Inpatient.Order longorder = longorderTemp.Clone();
                if (longorder == null)
                {
                    MessageBox.Show("获得医嘱出错!");
                }
                else
                {
                    string s   = longorder.Item.Name;
                    string sno = longorder.Combo.ID;
                    //保存医嘱组套 默认开立时间为 零点
                    longorder.BeginTime = new DateTime(longorder.BeginTime.Year, longorder.BeginTime.Month, longorder.BeginTime.Day, 0, 0, 0);
                    al.Add(longorder);
                }
            }
            for (int i = 0; i < this.ucOrder1.fpSpread1.Sheets[1].Rows.Count; i++)//临时医嘱
            {
                //{F4CA5CB3-0C23-4e0e-978D-5B72711A6C86}
                Neusoft.HISFC.Models.Order.Inpatient.Order shortorderTemp = this.ucOrder1.GetObjectFromFarPoint(i, 1);
                if (shortorderTemp == null)
                {
                    continue;
                }
                //Neusoft.HISFC.Models.Order.Inpatient.Order shortorder = this.ucOrder1.GetObjectFromFarPoint(i, 1).Clone();
                Neusoft.HISFC.Models.Order.Inpatient.Order shortorder = shortorderTemp.Clone();
                if (shortorder == null)
                {
                    MessageBox.Show("获得医嘱出错!");
                }
                else
                {
                    string s   = shortorder.Item.Name;
                    string sno = shortorder.Combo.ID;
                    //保存医嘱组套 默认开立时间为 零点
                    shortorder.BeginTime = new DateTime(shortorder.BeginTime.Year, shortorder.BeginTime.Month, shortorder.BeginTime.Day, 0, 0, 0);
                    al.Add(shortorder);
                }
            }
            #endregion
            if (al.Count > 0)
            {
                group.alItems = al;
                group.ShowDialog();
                this.tvGroup.RefrshGroup();
            }
        }