Example #1
0
        /// <summary>
        /// 获取并显示选择的午别

        /// </summary>
        /// <returns>0-成功;-1-失败</returns>
        private int ProcessNoon()
        {
            // 当前行

            int currentRow = this.neuSpread1_Sheet1.ActiveRowIndex;

            // 午别控件
            Neusoft.FrameWork.WinForms.Controls.PopUpListBox listBox = this.neuSpread1.getCurrentList(this.neuSpread1_Sheet1, 5);
            //选中的午别

            Neusoft.FrameWork.Models.NeuObject noon = null;

            if (currentRow < 0)
            {
                return(0);
            }
            // 获取选择的午别

            listBox.GetSelectedItem(out noon);
            if (noon == null)
            {
                return(-1);
            }
            // 显示午别
            this.neuSpread1_Sheet1.SetValue(currentRow, 5, noon.Name);

            this.neuSpread1.SetAllListBoxUnvisible();

            // 成功返回
            return(0);
        }
Example #2
0
        /// <summary>
        /// 获取选择的医技设备

        /// </summary>
        /// <returns>0-成功;-1-失败</returns>
        private int ProcessMachine()
        {
            int currentRow = fpSpread1_Sheet1.ActiveRowIndex;

            if (currentRow < 0)
            {
                return(0);
            }

            Neusoft.FrameWork.WinForms.Controls.PopUpListBox listBox1 = this.fpSpread1.getCurrentList(this.fpSpread1_Sheet1, (int)cols.Machine);
            //获取选中的信息

            Neusoft.FrameWork.Models.NeuObject machine = null;
            listBox1.GetSelectedItem(out machine);
            if (machine == null)
            {
                return(-1);
            }
            //医技设备
            fpSpread1_Sheet1.SetValue(currentRow, (int)cols.Machine, machine.Name);

            return(0);
        }
Example #3
0
        /// <summary>
        /// 获取选择的午别

        /// </summary>
        /// <returns>0-成功;-1-失败</returns>
        private int ProcessNoon()
        {
            int currentRow = fpSpread1_Sheet1.ActiveRowIndex;

            if (currentRow < 0)
            {
                return(0);
            }

            Neusoft.FrameWork.WinForms.Controls.PopUpListBox listBox = this.fpSpread1.getCurrentList(this.fpSpread1_Sheet1, 2);
            //获取选中的信息

            Neusoft.FrameWork.Models.NeuObject noon = null;
            listBox.GetSelectedItem(out noon);
            if (noon == null)
            {
                return(-1);
            }
            //午别
            fpSpread1_Sheet1.SetValue(currentRow, 2, noon.Name);
            fpSpread1_Sheet1.SetActiveCell(fpSpread1_Sheet1.ActiveRowIndex, 3);

            return(0);
        }