Esempio n. 1
0
        /// <summary>
        /// 获取传染病实例(vo)
        /// </summary>
        /// <param name="rptId"></param>
        /// <returns></returns>
        internal EntityRptContagion GetContagion(decimal rptId)
        {
            EntityRptContagion vo  = new EntityRptContagion();
            SqlHelper          svc = null;

            try
            {
                svc      = new SqlHelper(EnumBiz.onlineDB);
                vo.rptId = rptId;
                vo       = EntityTools.ConvertToEntity <EntityRptContagion>(svc.SelectPk(vo));

                EntityRptContagionData dataVo = new EntityRptContagionData();
                dataVo.rptId = rptId;
                dataVo       = EntityTools.ConvertToEntity <EntityRptContagionData>(svc.SelectPk(dataVo));
                vo.xmlData   = dataVo.xmlData;
            }
            catch (Exception e)
            {
                ExceptionLog.OutPutException(e);
            }
            finally
            {
                svc = null;
            }
            return(vo);
        }
Esempio n. 2
0
        /// <summary>
        /// 载入元素内容联动信息
        /// </summary>
        private void LoadLinkage(object value)
        {
            txtContent_vchr.ClearText();

            //标记是否原有数据,以便在保存时根据情况执行不同操作
            txtContent_vchr.Tag = null;
            if (value != null)
            {
                EntityElementTemplateLinkage vo = new EntityElementTemplateLinkage();
                vo.elementId = Function.Int(value);
                vo.status    = 1;
                ProxyEntityFactory proxy = new ProxyEntityFactory();
                vo = EntityTools.ConvertToEntity <EntityElementTemplateLinkage>(proxy.Service.Select(vo, new List <string> {
                    EntityElementTemplateLinkage.Columns.elementId, EntityElementTemplateLinkage.Columns.status
                }));
                proxy = null;
                if (vo != null)
                {
                    txtContent_vchr.SetXmlText(vo.colContentRtf, vo.colContentXml, false);
                    txtContent_vchr.Tag = vo;
                    m_mthOpenLinkedPage();
                }
                else
                {
                    if (m_intFlags == 0)
                    {
                        m_mthCloseLinkedPage();
                    }
                }
                proxy = null;
            }
        }
Esempio n. 3
0
 private void EditValueChanged(string empNo)
 {
     if (!string.IsNullOrEmpty(empNo))
     {
         EntityCodeOperator vo = new EntityCodeOperator();
         vo.disable  = "F";
         vo.operCode = empNo;
         using (ProxyEntityFactory proxy = new ProxyEntityFactory())
         {
             vo = EntityTools.ConvertToEntity <EntityCodeOperator>(proxy.Service.Select(vo, new List <string> {
                 EntityCodeOperator.Columns.disable, EntityCodeOperator.Columns.operCode
             }));
             //this.CaKeyId = ?
             if (empNo != vo.operCode)
             {
                 this.txtEmpName.Text = string.Empty;
                 this.lblInfo.Visible = true;
             }
             else
             {
                 this.txtEmpName.Text = vo.operName;
                 CurrPwd = vo.pwd;
                 empNo   = vo.operCode;
                 EmpName = vo.operName;
                 this.lblInfo.Visible = false;
             }
         }
     }
 }