public frmSetUserGroup(Neusoft.HISFC.Models.Base.Employee obj)
        {
            InitializeComponent();
            this.employee = obj.Clone();
            this.getPerson();
            if (obj.ID == "")
            {
                this.UpdateOrAdd         = "A";
                this.lblEmployee.Visible = true;
            }
            else
            {
                this.UpdateOrAdd         = "U";
                this.lblEmployee.Visible = false;
            }
            this.employee = obj;
            try
            {
                Neusoft.HISFC.BizLogic.Manager.Person managerPerson = new Neusoft.HISFC.BizLogic.Manager.Person();
                form = new Neusoft.FrameWork.WinForms.Forms.frmEasyChoose(managerPerson.GetUserEmployeeAll());
                form.SelectedItem += new Neusoft.FrameWork.WinForms.Forms.SelectedItemHandler(form_SelectedItem);

                this.tvGroup1.DoubleClick += new EventHandler(this.treeView_DoubleClick);
                this.lsvGroup.DoubleClick += new EventHandler(listView1_DoubleClick);
                this.RefreshGroupList();
                this.tvGroup1.Visible = true;
            }
            catch { }
        }
Esempio n. 2
0
 protected void SetPopForm()
 {
     frmPop               = new Neusoft.FrameWork.WinForms.Forms.frmEasyChoose(this.alItems);
     frmPop.Text          = "请选择项目";
     frmPop.StartPosition = FormStartPosition.CenterScreen;
     frmPop.SelectedItem += new Neusoft.FrameWork.WinForms.Forms.SelectedItemHandler(frmPop_SelectedItem);
     frmPop.ShowDialog();
 }
Esempio n. 3
0
 private Neusoft.FrameWork.WinForms.Forms.frmEasyChoose frmShowPerson = null;//选择人员
 private void ucPermissionInput_Load(object sender, EventArgs e)
 {
     try
     {
         frmShowPerson = new Neusoft.FrameWork.WinForms.Forms.frmEasyChoose(Neusoft.HISFC.BizProcess.Factory.Function.IntegrateManager.QueryEmployeeAll());
         frmShowPerson.SelectedItem += new Neusoft.FrameWork.WinForms.Forms.SelectedItemHandler(frmShowPerson_SelectedItem);
     }
     catch { }
 }
Esempio n. 4
0
 private Neusoft.FrameWork.WinForms.Forms.frmEasyChoose frmShowPerson = null;       //选择人员
 private void ucQCScoreSetInput_Load(object sender, EventArgs e)
 {
     try
     {
         frmShowPerson = new Neusoft.FrameWork.WinForms.Forms.frmEasyChoose(Neusoft.HISFC.BizProcess.Factory.Function.IntegrateEPR.GetQCConditionList());
         frmShowPerson.SelectedItem += new Neusoft.FrameWork.WinForms.Forms.SelectedItemHandler(frmShowPerson_SelectedItem);
         this.Set(this.obj);
     }
     catch {}
 }
Esempio n. 5
0
        public int AppendItems(ArrayList Items)
        {
            base.Items.Clear();

            ArrayList items = Items.Clone() as ArrayList;

            if (alItems == null)
            {
                alItems = new ArrayList();
            }

            for (int i = 0; i < items.Count; i++)
            {
                alItems.Insert(alItems.Count, items[i]);
            }

            Neusoft.FrameWork.Models.NeuObject objItem;
            try
            {
                for (int i = 0; i < alItems.Count; i++)
                {
                    objItem = new Neusoft.FrameWork.Models.NeuObject();
                    objItem = (Neusoft.FrameWork.Models.NeuObject)alItems[i];
                    if (this.bShowID)
                    {
                        base.Items.Add(objItem.ID);
                    }
                    else
                    {
                        base.Items.Add(objItem.Name);
                    }
                }
            }
            catch
            {
                return(-1);
            }
            //初始化窗口
            frmPop               = new Neusoft.FrameWork.WinForms.Forms.frmEasyChoose(this.alItems);
            frmPop.Text          = "请选择项目";
            frmPop.StartPosition = FormStartPosition.CenterScreen;
            frmPop.SelectedItem += new Neusoft.FrameWork.WinForms.Forms.SelectedItemHandler(frmPop_SelectedItem);
            //读取设置输入法配置文件
            SpellCode = Neusoft.FrameWork.WinForms.Classes.Function.GetInputType();

            return(0);
        }
Esempio n. 6
0
 /// <summary>
 /// 显示窗口
 /// </summary>
 /// <param name="id"></param>
 public void ShowWindow()
 {
     Neusoft.FrameWork.WinForms.Forms.frmEasyChoose easyChoose = new Neusoft.FrameWork.WinForms.Forms.frmEasyChoose(alObject);
     easyChoose.SelectedItem += new Neusoft.FrameWork.WinForms.Forms.SelectedItemHandler(easyChoose_SelectedItem);
     easyChoose.ShowDialog();
 }
 /// <summary>
 /// 选择人员
 /// </summary>
 /// <param name="al"></param>
 private void GetPersonObj(ArrayList al)
 {
     Neusoft.FrameWork.WinForms.Forms.frmEasyChoose form = new Neusoft.FrameWork.WinForms.Forms.frmEasyChoose(al);
     form.SelectedItem += new Neusoft.FrameWork.WinForms.Forms.SelectedItemHandler(form_SelectedItem);
     form.ShowDialog();
 }