Esempio n. 1
0
 void xapFormControl_RefFilter(object sender, xap.rui.control.refcontrol.events.RefActivatingEventArgs e)
 {
     if (e.BindingFieldName.Equals("Name_emp_doctor") && e.DataObject is EmsItemInCons)
     {
         e.WherePart = " bd_psndoc.id_dep = '" + (e.DataObject as EmsItemInCons).Id_dep_emp + "'";
     }
 }
Esempio n. 2
0
 void xapFormControl_RefFilter(object sender, xap.rui.control.refcontrol.events.RefActivatingEventArgs e)
 {
     if (e.BindingFieldName.Equals("Name_route"))
     {
         e.WherePart = string.Format("sd_srvtp like '{0}%'", BdSrvDictCodeConst.SD_SRVTP_BLOODPROD);
     }
 }
Esempio n. 3
0
 void xapFormControl_RefFilter(object sender, xap.rui.control.refcontrol.events.RefActivatingEventArgs e)
 {
     if (e.BindingFieldName.Equals("Name_agent"))
     {
         string id_ent = this.viewModel.Id_en;
         e.WherePart = string.Format("en_ent_cont.ds=0 and en_ent_cont.Id_ent='{0}'", id_ent);
     }
 }
Esempio n. 4
0
 /// <summary>
 /// 页码参照条件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void xapFormControl1_RefFilter(object sender, xap.rui.control.refcontrol.events.RefActivatingEventArgs e)
 {
     if (e.BindingFieldName == "Page_num")
     {
         //根据患者就诊信息获取页码
         e.WherePart = String.Format(" id_en='{0}' and fg_long='{1}'", this.dataSource.Id_en,
                                     (this.dataSource.Fg_long == null || this.dataSource.Fg_long == true) ? 'Y' : 'N');
     }
 }
Esempio n. 5
0
 protected override void OnXapFormControl_RefFilter(object sender, xap.rui.control.refcontrol.events.RefActivatingEventArgs e)
 {
     if (e.BindingFieldName.Equals("Name_route"))
     {
         e.WherePart = this.GetViewModel().OnRefFilterData(e.BindingFieldName);
     }
     else if (e.BindingFieldName.Equals("Name_mp_dep"))
     {
         e.WherePart = this.GetViewModel().OnRefFilterData(e.BindingFieldName);
     }
 }
Esempio n. 6
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void xapFormControl1_RefFilter(object sender, xap.rui.control.refcontrol.events.RefActivatingEventArgs e)
        {
            string fieldName = e.BindingFieldName;

            if ("Name_dep_nur_to".Equals(fieldName))
            {
                string id_dep = CiHeadDo.Emsaptrans.Id_dep_to;
                if (id_dep == null)
                {
                    return;
                }
                string nurids = model.getNurAreaOfDep(id_dep);
                if (nurids == null)
                {
                    return;
                }
                e.WherePart = string.Format("id_dep in ({0})", nurids);
            }
        }
Esempio n. 7
0
 /// <summary>
 /// 患者、页码参照条件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void xapFormControl1_RefFilter(object sender, xap.rui.control.refcontrol.events.RefActivatingEventArgs e)
 {
     if (e.BindingFieldName == "Name_pat_en")
     {
         //科室/病区都在bd_dep表,根据类型Sd_depttp区分
         if (this.Context.Dept.Sd_depttp.Equals("02"))
         {
             e.WherePart = " t1.id_dep_nur='" + this.Context.Dept.Id_dep + "'";//指定当前病区
         }
         else
         {
             e.WherePart = " t1.id_dep_phy='" + this.Context.Dept.Id_dep + "'";//指定当前科室
         }
     }
     else if (e.BindingFieldName == "Page_num")
     {
         //根据患者就诊信息获取页码
         //e.WherePart = " id_en='" + this.dataSource.Id_en + "'";
         e.WherePart = String.Format(" id_en='{0}' and fg_long='{1}'", this.dataSource.Id_en,
                                     (this.dataSource.Fg_long == null || this.dataSource.Fg_long == true) ? 'Y' : 'N');
     }
 }
Esempio n. 8
0
 protected virtual void OnXapFormControl_RefFilter(object sender, xap.rui.control.refcontrol.events.RefActivatingEventArgs e)
 {
 }