コード例 #1
0
    public function __construct($request, $response) 
    {/*{{{*/
        parent::__construct($request, $response);
        UserClient::getInstance()->checkGuest();

        $response->user = $this->user = $this->getCookieUser();
        $response->askSpace = $this->askSpace = AskSessionInfo::getBindSpace();
        $response->touchAppName = BeanFinder::get('configs')->touchAppName;
        $response->touchUrl = BeanFinder::get('configs')->touchUrl;
        $response->touchUrlHome = BeanFinder::get('configs')->touchUrl.'/index.htm';
        $response->touchDomain = BeanFinder::get('configs')->touchDomain;
        $this->touchDomain = BeanFinder::get('configs')->touchDomain;
        $response->imgTimestamp = BeanFinder::get('configs')->imgTimestamp;
        $response->mobileUrl = "http://".URL_PREFIX."m.haodf.com/p";
        $response->wwwUrl = "http://www.".URL_PREFIX."haodf.com/";
        $response->suggestionUrl = BeanFinder::get('configs')->touchUrl."/suggestion/suggestion";
        $response->fromOtherHost =$request->isQueryFromOtherHost();
        $response->backCnt = 1;
        $response->hostUri = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
        if(isset($_SERVER['HTTP_REFERER']))
        {
            $response->backCnt = (strstr($_SERVER['HTTP_REFERER'], self::SELECT_PAGE_PARAM))?2:1;
        }
        $response->_action = $request->action;
        $response->mCanUpload = $this->canUpload();
    }/*}}}*/
コード例 #2
0
	public function __construct($request, $response){
		//如果出现$user, $ssUser,则改为$newUser
		$userId = UserClient::getInstance()->getCheckedSeed('id');
        if($request->userId != null)
        {
            $userId = $request->userId;
        }
		if ($userId)
		    $this->_newUser = DAL::get()->find('user',$userId);
        else
            $this->_newUser = new NullEntity();
            	
        $response->newUser = $this->_newUser;
        
        $configs = BeanFinder::get('configs');
        $response->zixunBaseUrl = $configs->zixunBaseUrl;
        $response->imgBaseUrl = $configs->imgUrl;
		$response->domain = $request->getRequest('domain', URL_PREFIX.'zixun.haodf.com');
        $response->askSpace = AskSessionInfo::getBindSpace();
	}
コード例 #3
0
?>
            </p>
            <div class="ml30 mt20 forFindEdit">
                <div class="clearfix mt10">
                    <div class="fl f14 zxPost-part0check-item" id="threadtitle-shell">
<?php
if(AskSessionInfo::TITLE_OK == AskSessionInfo::getThreadTitleStatus())
{
?>
                        <?=XString::changeBlank2nbspAndLtrim($threadTitle)?>
<?php
}
else
{
?>
                        <p style="position:relative">
                        <input type="text" id="threadtitle-shell-input" class="titleInput" value="<?=$threadTitle?>"/>
                        </p>
                        <p class="pt10 zxPost-saveBtnShell"><span class="orange">*</span><span class="gray4">字数限制5-25个字</span></p>
<?php
}
?>
                    </div>
                    <div class="fr">
                        <a href="javascript:" class="zxPost-edit <?=AskSessionInfo::TITLE_OK == AskSessionInfo::getThreadTitleStatus()?'':'none'?>" id="threadtitleedit">修改</a>
                    </div>
                </div>

            </div>
        </div>
コード例 #4
0
    private function setIntentionTitle()
    {/*{{{*/
        $bindBingLiDtos = AskSessionInfo::getBindDtos();
        if (empty($bindBingLiDtos))
        {
            return false;
        }
        $diseases = array();
        foreach($bindBingLiDtos as $dto)
        {
            if($dto instanceof BingLiDto::$bingLiDtoClasses[BingLiDto::NODE_DEFINE_DISEASE])
            {
                $diseases[] = $dto->diseaseName;
            }
        }

        if (empty($diseases))
        {
            return false;
        }
        $title = XString::truncate(implode('_', $diseases), '25');
        AskSessionInfo::addThreadTitle($title, false);
        return true;
    }/*}}}*/
コード例 #5
0
 public function checkStartMarkSession($response)
 {/*{{{*/
     if(false == AskSessionInfo::hasStartMarkSession())
     {
         //跳转到咨询页面
         $response->setRedirect($response->router->urlfor('newcase/askindex'));
     }
 }/*}}}*/
コード例 #6
0
	public function addAttach($request, $response)
	{/*{{{*/
		if (isset($_FILES['attach'])) {
            $file = $_FILES['attach'];
            if ($file['error']==0) {
                $file['name'] = XString::convertToGbk($file['name']);
                $file['name'] = TuClient::getInstance()->checkFileSuffixName($file);
                $filePath = TuClient::getInstance()->uploadAttach($file);
                if(empty($filePath))
                {
                    exit();
                }
                if($this->_newUser->isNull())
                {
                    $this->_newUser = DAL::get()->find('user',PatientAttachment::DEFAULT_USERID);
                }
                $attach = AttachClient::getInstance()->addAttach($this->_newUser->id, $file['name'], $filePath, $file['type'], $file['size'], Attachment::TYPE_JPG, '', '');
                // 传入默认的patientid
                $user = $this->_newUser;
                $patientId = $request->patientId;
                if(empty($patientId) || $patientId == "all")
                {
                    $patientId = PatientAttachment::DEFAULT_PATIENTID;
                } else
                {
                    //传过来patient以后,要用patient的user
                    $patient = DAL::get()->find('Patient', $patientId);
                    $user = $patient->user;
                }
                $checkTime = $request->date;
                $hospitalId = $request->hoskey;
                $hospitalName = $request->hospitalName;
                $facultyName = $request->facultyName;
                $itemName = $request->itemName;
                $hospitalId   = isset($hospitalId)?$hospitalId:'';
                $checkTime    = isset($checkTime)?$checkTime:'';
                $hospitalName = isset($hospitalName)?$hospitalName:'';
                $facultyName  = isset($facultyName)?$facultyName:'';
                $itemName     = isset($itemName)?$itemName:'';
				$bingLi = BingLiClient::getInstance()->addBingLi($user->id, $patientId, '', PatientAttachment::TYPE_PIC, 0, '', $checkTime, $attach->id, $hospitalName, $facultyName, $itemName, $hospitalId);
                $patientAttachment = BingLiDto::createPatientAttachmentDto($bingLi->id, $hospitalId, $patientId);
                AskSessionInfo::addPatientInfo(NodeObj::NODE_DEFINE_ATTACHMENT, $patientAttachment);

                //随访复查报告
                $ticketId= $request->ticketid;
                if(isset($ticketId))
                {
                    if(CheckupTicket::NONE_TICKETID != $ticketId)
                    {
                        echo "<script>parent.addCheckupReportLeft($ticketId,$bingLi->id)</script>";
                    }
                    else
                    {//无指定复查直接上传附件
                        echo "<script>parent.afterUpload();</script>";
                    }
                }
                else
                {
                    echo "<script>parent.tb_remove();parent.showMyAttach('el_my_attachment', 0, '".$bingLi->id."');</script>";
                }
			}
		}
        return parent::DIRECT_OUTPUT;
	}/*}}}*/
コード例 #7
0
 public function conditionDescList($request, $response)
 {/*{{{*/
     $response->title = $response->topTitle = '选择本次咨询的病情';
     $response->patientConditionDescInfo = AskSessionInfo::getPatientInfos(NodeObj::NODE_DEFINE_CONDITIONDESC);
     $response->checkedConditionList = isset($_SESSION['telOrderInfo']['conditionlist']) ? $_SESSION['telOrderInfo']['conditionlist'] : array();
 }/*}}}*/
コード例 #8
0
<?php 
header("Content-Type:text/html; charset=gb2312");
if($treatment->treatedHospitalId > 0)
{
    $hospital = AskSessionInfo::getSinglePatientInfos(NodeObj::NODE_DEFINE_HOSPITAL, $treatment->treatedHospitalId);
}
?>
                    <div class="mt20 treatMsgBox lh200 treatmentInfor f14 w580">
                        <div class="clearfix mt20">
                            <div class="fl f14 zxPost-check-item w580">
                                <div class="f14 ml10 lh180">
                                    <p>
                                        <span class="fb">治疗时间:</span><?=$treatment->beginTime?substr($treatment->beginTime,0,10):'未填'?>至<?=$treatment->endTime?substr($treatment->endTime,0,10):'未填'?>
                                    </p>
                                    <p>
                                        <span class="fb">医院科室:</span><?=XString::changeBlank2nbspAndLtrim($hospital->hospitalName?$hospital->hospitalName:'未填')?> <?=XString::changeBlank2nbspAndLtrim($hospital->facultyName?$hospital->facultyName:'未填')?>  
                                    </p>
                                    <div class="clearfix">
                                        <span class="fb fl">治疗信息:</span>
                                        <p class="oh zoom">
                                            <?=XString::changeBlank2nbspAndLtrim($treatment->treatmentDesc?$treatment->treatmentDesc:'未填')?>
                                        </p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="addMsg pr zoom f14 mt40">
                    <p><a href="javascript:" class="addMsg-btn blue" id="addTreatMsg-btn">新增以往治疗信息</a></p>
                    <div class="addMsg-Box pa top36 none" id="addTreatMsg-Box">
                        <p id="treatmentErr" class="ml80 visibility h20"></p>
コード例 #9
0
?>
                    </p>
                    <p>
                        <span class="fb">医院科室:</span><?=XString::changeBlank2nbspAndLtrim(isset($treatementInfo['treatedHospital']['hospitalName'])?$treatementInfo['treatedHospital']['hospitalName']:"未填")?>  <?=XString::changeBlank2nbspAndLtrim(isset($treatementInfo['treatedHospital']['facultyName'])?$treatementInfo['treatedHospital']['facultyName']:"未填")?> 
                    </p>
                    <div class="clearfix">
                        <span class="fb fl">治疗信息:</span>
                        <p class="oh zoom">
                        <?=XString::changeBlank2nbspAndLtrim(isset($treatementInfo['treatmentDesc'])?$treatementInfo['treatmentDesc']:"未填")?>
                        </p>
                    </div>
                </div>
            </div>
            <div class="fr">
                <input type="hidden" value="<?=$key?>" id="treatment"/>
<?php
 if(AskSessionInfo::isCanDeletedTreatment($key) || isset($intention))
 {
?>
                <a href="javascript:" class="zxPost-del" formatcategory="<?=Intention::TREATMENTINFOS?>">删除</a>
<?php
 }
?>
            </div>
        </div>
    <?php } ?>
    </div>
</div>
 <?php } ?>

コード例 #10
0
 }
?>
                    </p>
                    <p>
                        <span class="fb">医院科室:</span><?=XString::changeBlank2nbspAndLtrim($hosInfo->hospitalName?$hosInfo->hospitalName:"未填")?>  <?=XString::changeBlank2nbspAndLtrim($hosInfo->facultyName?$hosInfo->facultyName:"未填")?> 
                    </p>
                    <div class="clearfix">
                        <span class="fb fl">治疗信息:</span>
                        <p class="oh zoom">
                        <?=XString::changeBlank2nbspAndLtrim($treatement->treatmentDesc?$treatement->treatmentDesc:"未填")?>
                        </p>
                    </div>
                </div>
            </div>
            <div class="fr">
                <input type="hidden" value="<?=$key?>" id="treatment"/>
<?php
 if(AskSessionInfo::isCanDeletedTreatment($key) || isset($post))
 {
?>
                <a href="javascript:" class="zxPost-del">删除</a>
<?php
 }
?>
            </div>
        </div>
    <?php } ?>
    </div>
</div>
 <?php } ?>
コード例 #11
0
<body>

    <!-- start zxPostTop -->
    <?php include("_header.php") ?>
    <!-- end zxPostTop -->

    <div class="zxPost">
        <!-- start zx-doctor -->
        <?php include("_askspace.php");?>
        <!-- end zx-doctor -->

        <!-- start zxPost-checkShell -->
        <div id="zxPost-checkShell">
            <h1 class="fn f24 f-yahei tc black pt40 pb20"><img src="http://i1.hdfimg.com/zixun/images/finish40.png" align="absmiddle" width="30">
<?php 
switch (AskSessionInfo::getThreadTitleStatus())
{
case AskSessionInfo::TITLE_OK:
    echo '您完成了,预览确认后提交!';
    break;
case AskSessionInfo::TITLE_EMPTY:
    echo '请您填写标题,确认后提交!';
    break;
default:
    echo '请您重新填写标题,确认后提交!';
}
?>
            </h1>

            <!-- start zxPost-check -->
            <?php include("_threadtitle.php") ?>