幫忙將下面的php語言轉換成c#

來源:互聯網
上載者:User
關鍵字 php c#
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(){

}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;}
  • 相關文章

    聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.