首页 > 后端开发 > php教程 > 帮忙将下面的php语言转换成c#

帮忙将下面的php语言转换成c#

WBOY
发布: 2016-06-02 11:34:36
原创
1111 人浏览过

phpc#

下面这些转换成C#,该怎么转?
class Application_Model_Checknote{
private $db;
private $incheck='in_check';
private $outcheck='out_check';
private $table=array('check_office'=>'patient_check_office','out_check'=>'patient_out_check',
'in_check'=>'patient_in_check','check_note'=>'patient_check_note','check_note_lab'=>'patient_check_note_lab',
'check_note_item'=>'patient_check_item_note','check_note_lab'=>'patient_check_note_lab');
private $type=array('in_check'=>'住院','out_check'=>'门诊');
private $case=array('in_check'=>1,'out_check'=>0);
private $kind=array('心电'=>0,'B超'=>0,'彩超'=>0,'检验'=>1,'放射'=>2,'CT'=>2,'MRI'=>2,'CR'=>2,'DR'=>2,'DX'=>2,'MR'=>2);
public function __construct(){

<code>}public function getCheckList($icno){    return array_merge($this->getOutCheck($icno),$this->getInCheck($icno));}private function getOutCheck($icno){    return $this->getCheck($this->outcheck, $icno);}private function getInCheck($icno){    return $this->getCheck($this->incheck, $icno);}private function getCheck($type,$icno){    $data=array();    $outsql="SELECT b.s_kind,a.n_serial,a.s_check_sn,a.s_check_name,CONVERT(varchar(100),a.d_check_time,23) as d_check_time             FROM ".$this->table[$type]." as a,                ".$this->table['check_office']." as b            WHERE ( a.s_office_check = b.s_code ) AND ( a.s_ic_no = '".$icno."' ) AND                ( a.s_charge_mark = '1' ) ";    $res=$this->db->query($outsql);    if(count($res)>0){        foreach($res as $r){            $data[]=array('i'=>$this->case[$type],'type'=>$this->type[$type],'checksn'=>$r['s_check_sn'],'kind'=>$r['s_kind'],'k'=>$this->kind[$r['s_kind']],            'serial'=>$r['n_serial'],'checkname'=>$r['s_check_name'],'checktime'=>$r['d_check_time']);        }    }    return $data;}</code>
登录后复制
相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板