示例#1
0
        /// <summary>
        /// 添加新人员权限
        /// </summary>
        /// <returns></returns>
        public int Add()
        {
            // TODO:  添加 ucQCScoreSetManager.Add 实现
            Neusoft.HISFC.Models.EPR.QCScore obj = new Neusoft.HISFC.Models.EPR.QCScore();
            ucQCScoreSetInput uc = new ucQCScoreSetInput(obj);

            Neusoft.FrameWork.WinForms.Classes.Function.PopForm.Text = "添加";
            if (Neusoft.FrameWork.WinForms.Classes.Function.PopShowControl(uc) == DialogResult.OK)
            {
                this.Retrieve();
            }
            return(0);
        }
示例#2
0
        /// <summary>
        /// 修改
        /// </summary>
        /// <returns></returns>
        public int Auditing()
        {
            // TODO:  添加 ucQCScoreSetManager.Auditing 实现
            if (this.fpSpread1.Sheets[0].ActiveRowIndex < 0)
            {
                MessageBox.Show("请选择要修改的行!");
                return(0);
            }
            int i = this.fpSpread1.Sheets[0].ActiveRowIndex;

            Neusoft.HISFC.Models.EPR.QCScore obj = new Neusoft.HISFC.Models.EPR.QCScore();
            obj.ID         = this.fpSpread1.Sheets[0].Cells[i, 0].Text;
            obj.Name       = this.fpSpread1.Sheets[0].Cells[i, 1].Text;
            obj.Type       = this.fpSpread1.Sheets[0].Cells[i, 2].Text;
            obj.Memo       = this.fpSpread1.Sheets[0].Cells[i, 3].Text;
            obj.MiniScore  = this.fpSpread1.Sheets[0].Cells[i, 4].Text;
            obj.TotalScore = this.fpSpread1.Sheets[0].Cells[i, 5].Text;
//			obj.User02  = this.fpSpread1.Sheets[0].Cells[i,4].Text;
//			obj.User03  = this.fpSpread1.Sheets[0].Cells[i,5].Text;
            //byte[] img =
            //			System.Drawing.Image image ;
            //			System.IO.Stream writer;
            //			image.Save(writer);
            //			System.Windows.Forms.PictureBox p;
            //			//writer.Write(buffer,0,buffer.);
            //			System.IO.StreamReader reader;
            //reader.Read(buffer,0,length);


//			byte[] byteimg = manager.GetQCScoreSetBackGround(obj.ID);
            ucQCScoreSetInput uc = new ucQCScoreSetInput(obj);

            Neusoft.FrameWork.WinForms.Classes.Function.PopForm.Text = "修改";
            if (Neusoft.FrameWork.WinForms.Classes.Function.PopShowControl(uc) == DialogResult.OK)
            {
                this.Retrieve();
            }
            return(0);
        }