예제 #1
0
        private void neuSpread1_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
        {
            Neusoft.HISFC.Models.Nurse.Kickback kb = new Neusoft.HISFC.Models.Nurse.Kickback();
            kb.ID        = this.neuSpread1_Sheet1.GetText(e.Row, 0);
            kb.Name      = this.neuSpread1_Sheet1.GetText(e.Row, 1).Replace("\r\n", "");
            kb.SpellCode = this.neuSpread1_Sheet1.GetText(e.Row, 2);
            kb.WBCode    = this.neuSpread1_Sheet1.GetText(e.Row, 3);
            kb.UserCode  = this.neuSpread1_Sheet1.GetText(e.Row, 4);
            if (this.neuSpread1_Sheet1.GetText(e.Row, 5).Trim().Equals("是"))
            {
                kb.IsValid = true;
            }
            else
            {
                kb.IsValid = false;
            }
            kb.Memo             = this.neuSpread1_Sheet1.GetText(e.Row, 6).Replace("\r\n", "");
            kb.OperEnv.ID       = ((Neusoft.HISFC.Models.Base.Employee)Neusoft.FrameWork.Management.Connection.Operator).ID;
            kb.OperEnv.Name     = ((Neusoft.HISFC.Models.Base.Employee)Neusoft.FrameWork.Management.Connection.Operator).Name;
            kb.OperEnv.OperTime = this.kbManager.GetDateTimeFromSysDateTime();

            ucKBHandler uc = new ucKBHandler();

            uc.IsAdd = false;
            uc.UpdateItem(kb);
            uc.UpdateEvent += new UpdateSuccessHandler(uc_UpdateEvent);

            Neusoft.FrameWork.WinForms.Classes.Function.PopShowControl(uc);
        }
예제 #2
0
        private void Add()
        {
            ucKBHandler uc = new ucKBHandler();

            uc.IsAdd = true;
            uc.InsertItem();
            uc.UpdateEvent += new UpdateSuccessHandler(uc_UpdateEvent);
            Neusoft.FrameWork.WinForms.Classes.Function.PopShowControl(uc);
        }