您好,欢迎访问一九零五行业门户网

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

phpc#
下面这些转换成c#,该怎么转?
'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(){
}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;}
其它类似信息

推荐信息