/**
 * 
 * 在院病人列表
 */
import React from 'react';
import {
    Card, Table, Input, Form, Select, Row, Col, Checkbox, Tabs,
    DatePicker, Button, Popconfirm, Icon, Divider, message, Modal,
} from 'antd';
import { Util, dayFormat } from 'tools/index';
import { $http } from 'containers/config/https';
import moment from 'moment';
import '../style/index.less';

const { RangePicker } = DatePicker;
const Option = Select.Option;

class InHospitalTabPane extends React.Component {
    constructor(props) {
        super(props)
        this.state = {
            dataSource: [],
            total: 0,
            page: 1,
            pageSize: 10,
        }
    }

    componentDidMount() {
        let script = document.createElement('script');
        script.type = 'text/javascript';
        script.src = 'https://www.dcwriter.cn/DemoDocumentImageService.aspx?js=1';
        document.getElementById('myWriterControl').appendChild(script);
    }
    //结束
    loadEndPatinet() {
        var params = {
        }
        $http.post('urlDeault', this, {
            code: "03050008",
            data: params,
            success: function (res) {
                if (res.errorCode == '0') {
                    message.success('操作成功')
                }
            }
        });
    }


    render() {
        return <div>
              <div>
    <div
      id="myWriterControl"
      style={{width: '100%',height:'750px',border: '2px solid black', borderRadius: '5px'}}
      contentrendermode="NormalHtmlEditable"
      referencepathfordebug="ctlReference"
      workspacebackcolorstring="#B1CAEB"
      workspacebackgroundimage="Workspace-Background.png"
      servicepageurl="https://www.dcwriter.cn/DemoDocumentImageService.aspx"
      useclassattribute="true"
      heightcompress="true"
      backgroundtextoutputmode="Underline"
      imagedataembedinhtml="true"
      serversleepfordebug="0"
      allowcopy="true"
      supportactivex="false"
      pixelpagespacing="5"
      clientcontextmenutype="Custom"
      usedcwriterminijs="True"
      autozoom2="true"
      customcssstring="
                      ::-webkit-scrollbar {width: 10px;height: 10px;}
                      ::-webkit-scrollbar-thumb {border-radius: 5px;
                            -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);background: #349dee; }
                      ::-webkit-scrollbar-track {-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
                            border-radius: 0;background: #eaedf1;}"
      showdebuginfo="false"
      registercodeindex="0"
    ></div>
    <div
      id="btrPrintPreview"
    //   style="border:2px solid black;z-index:1000;border:1px solid black;background-color:#cccccc;display:none;"
    style={{border:'2px solid black',zIndex:'1000',backgroundColor:'#cccccc',display:'none'}}
    >
    </div>
  </div>
        </div>
    }

}

export default InHospitalTabPane;