Exemplo n.º 1
0
 /// <summary>
 /// 多科会诊且会诊意见由受邀医师填写申请人初次打开默认值是否组合其他医师意见
 /// Add xlb 2013-03-07
 /// </summary>
 private string SetComposeConsultSuggestion(ConsultRecordForWrite consultZDR)
 {
     try
     {
         //多科会诊且配置由受邀医师填写会诊意见 申请医师总结时根据配置是否组合其他医师意见
         if (consultZDR == ConsultRecordForWrite.MultiEmployee)
         {
             string value       = ConsultCommon.GetConfigKey("IsComposeSuggestion").Trim();
             string ComposeInfo = string.Empty;
             if (value != "0")
             {
                 string         sql = @"select s.consultsuggestion,u.name from consultsuggestion s join 
              users u on s.createuser=u.id where s.valid=1 and u.valid=1 and s.consultapplysn=@consultApplySn  and s.state='20'";
                 SqlParameter[] sps = { new SqlParameter("@consultApplySn", mconsultApplySn) };
                 DataTable      dt  = DS_SqlHelper.ExecuteDataTable(sql, sps, CommandType.Text);
                 if (dt == null || dt.Rows.Count <= 0)
                 {
                     return("");
                 }
                 foreach (DataRow row in dt.Rows)
                 {
                     ComposeInfo += "[" + row["NAME"] + "]" + ":" + row["CONSULTSUGGESTION"];
                     ComposeInfo += "\r\n";
                 }
                 return(ComposeInfo);
             }
         }
         return("");
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 根据配置来控制是否显示审核意见
 /// Add xlb 2013-02-22
 /// </summary>
 private void ShowReviewYj()
 {
     try
     {
         string isNeedApprove = ConsultCommon.GetConfigKey("ConsultAuditConfig").Split('|')[0] == "1" ? "1" : "0";
         if (isNeedApprove == "0" || string.IsNullOrEmpty(consultApplyId))
         {
             groupControlReview.Visible = false;
             this.Height += 4;
             return;
         }
         InitApprove(consultApplyId);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }