Example #1
0
        void btnAgree_MouseClick(object sender, MouseEventArgs e)
        {
            CiordInviteConsDO inviteConsDo = this.model.btnEnable(consDto.Id_apcons);

            if (inviteConsDo.Fg_response == true)
            {
                this.ShowInfo(string.Format("本次会诊已由本科室的{0}于{1}应答!", inviteConsDo.Name_emp, inviteConsDo.Dt_response));
                return;
            }
            ConsResponseDialog dialog = new ConsResponseDialog(this.consDto)
            {
                Dock = DockStyle.Fill,
                Size = new Size(400, 300)
            };

            dialog.ShowDialog();
            if (dialog.DialogResult == DialogResult.OK)
            {
                this.xapFormControl.SaveForm();
                this.model.Save(dialog.dto, type, this.Context.PsnInfo.Id_psndoc, this.Context.Dept.Id_dep);
                this.SetStatusMsg("应答成功!");
                this.FireEvent();
                this.btnAgree.Enabled = false;
            }
        }
Example #2
0
 /// <summary>
 /// 根据id值查找会诊申请单AggDO数据
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public CiordInviteConsDO findById(String id)
 {
     #region "缓存处理"
     if (ch.IsCached("findById"))
     {
         return(ch.findById(id));
     }
     #endregion
     List <object> param = new List <object>();
     param.Add(id);
     si.url = url_r;
     CiordInviteConsDO rtn = si.invoke <CiordInviteConsDO>("findById", param.ToArray());
     return(rtn);
 }
Example #3
0
 void xapFormControl_DataChanged(object sender, DataChangedEventArgs e)
 {
     if (e.PropName == "Name_dep" && e.Data is CiordInviteConsDO)
     {
         CiordInviteConsDO item = e.Data as CiordInviteConsDO;
         item.Id_emp   = null;
         item.Name_emp = null;
     }
     if (e.PropName == "Name_emp" && e.Data is CiordInviteConsDO)
     {
         CiordInviteConsDO item = e.Data as CiordInviteConsDO;
         item.Id_emp_title   = null;
         item.Name_emp_title = null;
     }
 }
Example #4
0
        public CiordInviteConsDO btnEnable(string id)
        {
            CiorappconsultAggDO consAggDo = consAggService.findById(id);
            CiordInviteConsDO   inviteDo  = new CiordInviteConsDO();

            //bool fg = false;
            foreach (CiordInviteConsDO inviteConsDo in consAggDo.getCiordInviteConsDO())
            {
                if (inviteConsDo.Id_dep == UserManager.getInstance().CurrentDept.Id_dep)
                {
                    inviteDo = inviteConsDo;
                }
            }
            return(inviteDo);
        }
Example #5
0
        public void UpdateApConsInvite(string id_invite)
        {
            if (inviteList.Count == 0)
            {
                return;
            }
            EmsItemInCons     itemInCons = this.inviteList[0];
            CiordInviteConsDO con        = inviteCons.GetInviteConsById(id_invite);

            con.Dt_response     = CommonExtentions.NowTime(this);               //应答时间	SINGLE	FDateTime	19
            con.Fg_response     = true;                                         //应答标志	SINGLE	FBoolean	1
            con.Id_emp_response = UserManager.getInstance().CurrentUser.Id_psn; //应答人id	REF	用户	20
            con.Id_emp          = itemInCons.Id_emp_doctor;
            con.Id_emp_title    = itemInCons.Id_emp_title;
            con.Sd_emp_title    = itemInCons.Sd_emp_title;
            cons.SetUpdated();
            inviteCons.Save(new CiordInviteConsDO[] { con });
        }
Example #6
0
        void xapFormControl_AfterFocused(object sender, DataFocusedEventArgs e)
        {
            consDto = this.xapFormControl.GetSelected <OrdConsDTO>()[0];

            CiordInviteConsDO inviteConsDo = this.model.btnEnable(consDto.Id_apcons);

            if (inviteConsDo == null)
            {
                return;
            }
            if (inviteConsDo.Fg_response == false)
            {
                this.btnAgree.Enabled = true;
            }
            else
            {
                this.btnAgree.Enabled = false;
            }
            consDto.Fg_audit = true;
            this.FireSelected(this.model.GetApConsById(consDto));
        }