Пример #1
0
        private void pDJFK_Click(object sender, EventArgs e)
        {
            timer1.Stop();
            FrmWaitCard frm = new FrmWaitCard();

            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                if (Settings.Default.运行模式 == "RUN")
                {
                    SkyComm skyComm = new SkyComm();
                    FrmMain.parInfo = skyComm.QueryCardInfoBySID(FrmMain.userInfo.Number);
                    if (FrmMain.parInfo.Tables.Count > 0 && FrmMain.parInfo.Tables[0].Rows.Count > 0)
                    {
                        MyMsg.MsgInfo("该身份证已经办理过诊疗卡,不能重复办卡!");
                        this.Close();
                    }
                    else
                    {
                        this.DialogResult = System.Windows.Forms.DialogResult.OK;
                    }
                }
                else
                {
                    this.DialogResult = System.Windows.Forms.DialogResult.OK;
                }
            }
            else
            {
                this.Close();
            }
        }
Пример #2
0
 private void Init()
 {
     this.lblage.Text    = SkyComm.getage(FrmMain.userInfo.Birthday);
     this.lblCardNo.Text = FrmMain.userInfo.Number;
     this.lblName.Text   = FrmMain.userInfo.Name;
     this.lblSex.Text    = FrmMain.userInfo.Sex;
 }
Пример #3
0
        private void office_Click(object sender, EventArgs e)
        {
            OfficeItem oi          = sender as OfficeItem;
            string     s           = oi.Name.Substring(6);
            int        OfficeIndex = Convert.ToInt32(oi.Name.Substring(6));

            if (Settings.Default.运行模式 == "RUN")
            {
                DataRow[] drArrayOffice = dtOffice.Select("科室名称 = '" + dtBind.Rows[OfficeIndex - 1]["科室名称"].ToString() + "'");
                LogService.GlobalInfoMessage("查询医生列表");
                SkyComm skyComm = new SkyComm();
                dtDoctor = skyComm.QueryDoctorInfo(drArrayOffice[0]["科室编号"].ToString()).Tables[0];
            }

            FrmNewDoctor frmNewDoctor = new FrmNewDoctor();

            frmNewDoctor.doctorList1.officeName = dtBind.Rows[OfficeIndex - 1]["科室名称"].ToString();
            frmNewDoctor.doctorList1.DtDoctor   = dtDoctor;
            frmNewDoctor.doctorList1.DataBind(false);
            if (frmNewDoctor.ShowDialog() == DialogResult.OK)
            {
                this.DialogResult = DialogResult.OK;
            }
            else
            {
                this.DialogResult = DialogResult.Cancel;
            }
        }
Пример #4
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            labHosName.Text = Settings.Default.医院名称;
            try
            {
                //pLogo.Image = Image.FromFile(Application.StartupPath + @"\\Image\\" + Settings.Default.医院LOGO, false);

                string[] files = System.IO.Directory.GetFiles(Application.StartupPath + @"\\HomeImage");
                foreach (string f in files)
                {
                    string fileName = System.IO.Path.GetFullPath(f);
                    imageList.Add(fileName);
                }

                if (imageList.Count > 0)
                {
                    picHome.Image = Image.FromFile(imageList[0].ToString(), false);
                }

                if (Settings.Default.启用医院介绍 == false)
                {
                    lbJS.Enabled = false;
                }

                if (Settings.Default.启用自助发卡 == false)
                {
                    lbFK.Enabled = false;
                }

                if (Settings.Default.启用消费查询 == false)
                {
                    lbXFCX.Enabled = false;
                }

                if (Settings.Default.启用自助充值 == false)
                {
                    lbCZ.Enabled = false;
                }
                if (Settings.Default.启用余额查询 == false)
                {
                    lbYECX.Enabled = false;
                }

                if (Settings.Default.启用自助挂号 == false)
                {
                    lbGH.Enabled = false;
                }
            }
            catch
            {
                //pLogo.Image = Image.FromFile(Application.StartupPath + @"\\Image\\默认logo.png", false);
            }



            SkyComm.Init();
        }
Пример #5
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            labHosName.Text = Settings.Default.医院名称;
            try
            {
                pLogo.Image = Image.FromFile(Application.StartupPath + @"\\Image\\" + Settings.Default.医院LOGO, false);
            }
            catch
            {
                pLogo.Image = Image.FromFile(Application.StartupPath + @"\\Image\\默认logo.png", false);
            }

            SkyComm.Init();
        }
        private void FrmCardConsumeDetail_Load(object sender, EventArgs e)
        {
            lbXm.Text = FrmMain.parInfo.Tables[0].Rows[0]["姓名"].ToString();
            lbKh.Text = FrmMain.parInfo.Tables[0].Rows[0]["卡号"].ToString();
            lbYe.Text = FrmMain.parInfo.Tables[0].Rows[0]["卡余额"].ToString();

            try
            {
                DataSet dsConsumeDetail = new DataSet();
                if (Settings.Default.运行模式 == "RUN")
                {
                    LogService.GlobalInfoMessage("查询消费记录");
                    SkyComm skyComm = new SkyComm();
                    dsConsumeDetail = skyComm.QueryCardConsumeInfo(FrmMain.cardInfoStruct.CardNo, DateTime.Now.AddMonths(month * -1));

                    if (dsConsumeDetail.Tables.Count > 0 && dsConsumeDetail.Tables[0].Rows.Count > 0)
                    {
                        lbZHF.Text = Convert.ToDecimal(dsConsumeDetail.Tables[0].Compute("SUM(金额)", "")).ToString("0.00");
                    }
                    else
                    {
                        lbZHF.Text = "0.00";
                    }
                }
                else
                {
                    DataTable  dt = new DataTable();
                    DataColumn dc = new DataColumn();
                    dc.ColumnName = "卡号";
                    dc.DataType   = typeof(System.String);
                    dt.Columns.Add(dc);

                    dc            = new DataColumn();
                    dc.ColumnName = "收费项目名称";
                    dc.DataType   = typeof(System.String);
                    dt.Columns.Add(dc);

                    dc            = new DataColumn();
                    dc.ColumnName = "单价";
                    dc.DataType   = typeof(System.Decimal);
                    dt.Columns.Add(dc);

                    dc            = new DataColumn();
                    dc.ColumnName = "数量";
                    dc.DataType   = typeof(System.Decimal);
                    dt.Columns.Add(dc);

                    dc            = new DataColumn();
                    dc.ColumnName = "金额";
                    dc.DataType   = typeof(System.Decimal);
                    dt.Columns.Add(dc);

                    dc            = new DataColumn();
                    dc.ColumnName = "消费日期";
                    dc.DataType   = typeof(System.DateTime);
                    dt.Columns.Add(dc);

                    DataRow drNew = dt.NewRow();
                    drNew["卡号"]     = FrmMain.cardInfoStruct.CardNo;
                    drNew["收费项目名称"] = "西药费";
                    drNew["单价"]     = 10;
                    drNew["数量"]     = 10;
                    drNew["金额"]     = 100;
                    drNew["消费日期"]   = Convert.ToDateTime("2013-06-01");
                    dt.Rows.Add(drNew);

                    drNew           = dt.NewRow();
                    drNew["卡号"]     = FrmMain.cardInfoStruct.CardNo;
                    drNew["收费项目名称"] = "中成药";
                    drNew["单价"]     = 5;
                    drNew["数量"]     = 10;
                    drNew["金额"]     = 50;
                    drNew["消费日期"]   = Convert.ToDateTime("2013-06-2");
                    dt.Rows.Add(drNew);

                    drNew           = dt.NewRow();
                    drNew["卡号"]     = FrmMain.cardInfoStruct.CardNo;
                    drNew["收费项目名称"] = " CT费";
                    drNew["单价"]     = 500;
                    drNew["数量"]     = 1;
                    drNew["金额"]     = 500;
                    drNew["消费日期"]   = Convert.ToDateTime("2013-05-1");
                    dt.Rows.Add(drNew);

                    drNew           = dt.NewRow();
                    drNew["卡号"]     = FrmMain.cardInfoStruct.CardNo;
                    drNew["收费项目名称"] = "血常规";
                    drNew["单价"]     = 20;
                    drNew["数量"]     = 1;
                    drNew["金额"]     = 20;
                    drNew["消费日期"]   = Convert.ToDateTime("2013-05-2");
                    dt.Rows.Add(drNew);

                    drNew           = dt.NewRow();
                    drNew["卡号"]     = FrmMain.cardInfoStruct.CardNo;
                    drNew["收费项目名称"] = " 核磁共振";
                    drNew["单价"]     = 500;
                    drNew["数量"]     = 1;
                    drNew["金额"]     = 500;
                    drNew["消费日期"]   = Convert.ToDateTime("2013-04-1");
                    dt.Rows.Add(drNew);

                    drNew           = dt.NewRow();
                    drNew["卡号"]     = FrmMain.cardInfoStruct.CardNo;
                    drNew["收费项目名称"] = "手术费";
                    drNew["单价"]     = 1000;
                    drNew["数量"]     = 1;
                    drNew["金额"]     = 1000;
                    drNew["消费日期"]   = Convert.ToDateTime("2013-04-2");
                    dt.Rows.Add(drNew);
                    dsConsumeDetail.Tables.Add(dt);
                }

                DataView dv = dsConsumeDetail.Tables[0].DefaultView;
                //dv.RowFilter = "消费日期 >= '" + DateTime.Now.AddMonths(month * -1).ToString("yyyy-MM-dd HH:mm:ss") + "'";
                gridControl1.DataSource = dv;
            }
            catch (Exception err)
            {
                MyMsg.MsgInfo(err.Message);
            }
        }
Пример #7
0
        private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
        {
            if (Settings.Default.运行模式 == "RUN")
            {
                try
                {
                    string cardid   = string.Empty;
                    string cardType = Settings.Default.卡类型;
                    if (cardType == "磁条卡")
                    {
                        cardid = m100ReadCard.ReadCard();
                    }
                    else if (cardType == "IC卡")
                    {
                        cardid = m100ICReadCard.ReadCard();
                    }

                    if (cardid == string.Empty)
                    {
                        throw new Exception("异常卡片!");
                    }

                    FrmMain.cardInfoStruct.CardNo = cardid;

                    LogService.GlobalInfoMessage("查询卡信息");
                    SkyComm skyComm = new SkyComm();
                    DataSet dsinfo  = skyComm.QueryCardInfo(FrmMain.cardInfoStruct.CardNo);
                    FrmMain.parInfo = dsinfo;

                    if (FrmMain.parInfo.Tables.Count > 0 && FrmMain.parInfo.Tables[0].Rows.Count > 0)
                    {
                        FrmMain.cardBlance = Convert.ToDecimal(FrmMain.parInfo.Tables[0].Rows[0]["卡余额"]);
                    }
                    else
                    {
                        throw new Exception("没有此卡信息!");
                    }
                }
                catch (Exception err)
                {
                    throw new Exception(err.Message);
                }
            }
            else
            {
                if (Settings.Default.运行模式 == "TEST")
                {
                    string cardid   = string.Empty;
                    string cardType = Settings.Default.卡类型;
                    if (cardType == "磁条卡")
                    {
                        cardid = m100ReadCard.ReadCard();
                    }
                    else if (cardType == "IC卡")
                    {
                        cardid = m100ICReadCard.ReadCard();
                    }
                }

                FrmMain.cardInfoStruct.CardNo = "123456789";

                DataTable  dtParInfo = new DataTable();
                DataColumn dc        = new DataColumn();
                dc.ColumnName = "卡号";
                dc.DataType   = typeof(System.String);
                dtParInfo.Columns.Add(dc);

                dc            = new DataColumn();
                dc.ColumnName = "姓名";
                dc.DataType   = typeof(System.String);
                dtParInfo.Columns.Add(dc);

                dc            = new DataColumn();
                dc.ColumnName = "性别";
                dc.DataType   = typeof(System.String);
                dtParInfo.Columns.Add(dc);

                dc            = new DataColumn();
                dc.ColumnName = "出生日期";
                dc.DataType   = typeof(System.DateTime);
                dtParInfo.Columns.Add(dc);

                dc            = new DataColumn();
                dc.ColumnName = "身份证号";
                dc.DataType   = typeof(System.String);
                dtParInfo.Columns.Add(dc);

                dc            = new DataColumn();
                dc.ColumnName = "卡余额";
                dc.DataType   = typeof(System.Decimal);
                dtParInfo.Columns.Add(dc);

                DataRow drNew = dtParInfo.NewRow();
                drNew["卡号"]   = FrmMain.cardInfoStruct.CardNo;
                drNew["姓名"]   = "李某某";
                drNew["性别"]   = "男";
                drNew["出生日期"] = Convert.ToDateTime("1983-12-03");
                drNew["身份证号"] = "610123456789654120";
                drNew["卡余额"]  = "1000";
                dtParInfo.Rows.Add(drNew);

                FrmMain.parInfo.Tables.Add(dtParInfo);

                FrmMain.cardBlance = 1000;
                Thread.Sleep(1000);
            }
        }
        private void FrmCardRechargeDetail_Load(object sender, EventArgs e)
        {
            lbXm.Text = FrmMain.parInfo.Tables[0].Rows[0]["姓名"].ToString();
            lbKh.Text = FrmMain.parInfo.Tables[0].Rows[0]["卡号"].ToString();
            lbYe.Text = FrmMain.parInfo.Tables[0].Rows[0]["卡余额"].ToString();

            if (Settings.Default.运行模式 == "RUN")
            {
                LogService.GlobalInfoMessage("查询充值记录");
                SkyComm skyComm          = new SkyComm();
                DataSet dsRechargeDetail = skyComm.QueryCardRechargeDetail(FrmMain.cardInfoStruct.CardNo);
                gridControl1.DataSource = dsRechargeDetail.Tables[0];

                if (dsRechargeDetail.Tables.Count > 0 && dsRechargeDetail.Tables[0].Rows.Count > 0)
                {
                    lbZE.Text = Convert.ToDecimal(dsRechargeDetail.Tables[0].Compute("SUM(充值金额)", "")).ToString("0.00");
                }
                else
                {
                    lbZE.Text = "0.00";
                }
            }
            else
            {
                DataSet    dsRechargeDetail = new DataSet();
                DataTable  dt = new DataTable();
                DataColumn dc = new DataColumn();
                dc.ColumnName = "卡号";
                dc.DataType   = typeof(System.String);
                dt.Columns.Add(dc);

                dc            = new DataColumn();
                dc.ColumnName = "充值金额";
                dc.DataType   = typeof(System.Decimal);
                dt.Columns.Add(dc);

                dc            = new DataColumn();
                dc.ColumnName = "充值时间";
                dc.DataType   = typeof(System.DateTime);
                dt.Columns.Add(dc);

                DataRow drNew = dt.NewRow();
                drNew["卡号"]   = FrmMain.cardInfoStruct.CardNo;
                drNew["充值金额"] = 100;
                drNew["充值时间"] = Convert.ToDateTime("2013-07-01");
                dt.Rows.Add(drNew);

                drNew         = dt.NewRow();
                drNew["卡号"]   = FrmMain.cardInfoStruct.CardNo;
                drNew["充值金额"] = 200;
                drNew["充值时间"] = Convert.ToDateTime("2013-07-02");
                dt.Rows.Add(drNew);

                drNew         = dt.NewRow();
                drNew["卡号"]   = FrmMain.cardInfoStruct.CardNo;
                drNew["充值金额"] = 300;
                drNew["充值时间"] = Convert.ToDateTime("2013-07-03");
                dt.Rows.Add(drNew);

                drNew         = dt.NewRow();
                drNew["卡号"]   = FrmMain.cardInfoStruct.CardNo;
                drNew["充值金额"] = 400;
                drNew["充值时间"] = DateTime.Now;
                dt.Rows.Add(drNew);

                dsRechargeDetail.Tables.Add(dt);
                gridControl1.DataSource = dsRechargeDetail.Tables[0];
            }
        }
Пример #9
0
        public int OutCard(int sqadd, int blockAddr, IDCardInfo userInfo, decimal sumChargeMoney)
        {
            try
            {
                if (k101.CheckCardPosition() == false)
                {
                    MyMsg.MsgInfo("卡机状态不正确,不能继续发卡,请联系管理员!");
                    return(-1);
                }

                //   //吐出卡片
                //k101.MoveCard("传动到前端夹卡位");
                //MyMsg.MsgInfo("发卡成功!");
                //return;

                string cardTemp = string.Empty;
                string cardType = Settings.Default.卡类型;

                if (cardType == "磁条卡")
                {
                    k101.MoveCard("移动到读磁卡位");
                    if (k101.MoveCard("移动到读磁卡位") == false)
                    {
                        k101.MoveCard("回收卡片");
                        MyMsg.MsgInfo("卡片传动失败,不能继续发卡,请联系管理员!");
                        return(-1);
                    }

                    cardTemp = k101.ReadCard();
                    if (cardTemp == string.Empty)
                    {
                        k101.MoveCard("回收卡片");
                        MyMsg.MsgInfo("磁卡数据错误,或是空卡,不能继续发卡,请联系管理员!");
                        return(-1);
                    }

                    FrmMain.cardInfoStruct.CardNo = cardTemp;
                }

                string CardNo = cardTemp;

                if (Settings.Default.运行模式 == "RUN")
                {
                    LogService.GlobalInfoMessage("调用发卡存储过程");
                    SkyComm skyComm = new SkyComm();
                    skyComm.CreatCard(CardNo, FrmMain.userInfo.Name, FrmMain.userInfo.Sex, Convert.ToDateTime(FrmMain.userInfo.Birthday), FrmMain.userInfo.Number, FrmMain.userInfo.Address, FrmMain.userInfo.People);
                    LogService.GlobalInfoMessage("调用发卡存储过程成功");
                }

                bool isSuccess = true;
                if (cardType == "IC卡")
                {
                    LogService.GlobalInfoMessage("传动到IC卡位");
                    k101.MoveCard("传动到IC卡位");
                    if (k101.MoveCard("传动到IC卡位") == false)
                    {
                        LogService.GlobalInfoMessage("回收卡片");
                        k101.MoveCard("回收卡片");
                        MyMsg.MsgInfo("卡片传动失败,不能继续发卡,请通过补办卡重新发卡!");
                        return(-1);
                    }

                    //写卡,如果失败则重试
                    int state = -1;
                    while (0 != state)
                    {
                        LogService.GlobalInfoMessage("写卡");
                        state = k101.WriteCard(CardNo);
                        LogService.GlobalInfoMessage("写卡完成");
                        if (state != 0)
                        {
                            MyAlert my = new MyAlert();
                            my.Msg       = "写卡失败,是否重试?";
                            my.alerttype = "确认取消";
                            if (my.ShowDialog() == DialogResult.OK)
                            {
                                state = -1;
                            }
                            else
                            {
                                state = 0;
                            }
                            isSuccess = false;
                        }
                        else
                        {
                            isSuccess = true;
                        }
                    }
                }

                if (!string.IsNullOrEmpty(cardTemp))
                {
                    if (isSuccess == true)
                    {
                        LogService.GlobalInfoMessage("传动到前端夹卡位");
                        //吐出卡片
                        if (k101.MoveCard("传动到前端夹卡位") == false)
                        {
                            LogService.GlobalInfoMessage("吐卡失败!请通过补办卡重新发卡!");
                            MyMsg.MsgInfo("吐卡失败!请通过补办卡重新发卡!");
                            isSuccess = false;
                            return(-1);
                        }
                        else
                        {
                            LogService.GlobalInfoMessage("发卡成功");
                            isSuccess = true;
                            MyMsg.MsgInfo("发卡成功!");
                        }
                    }

                    if (isSuccess == false)
                    {
                        LogService.GlobalInfoMessage("回收卡片");
                        k101.MoveCard("回收卡片");
                        MyMsg.MsgInfo("写卡失败,请通过补办卡重新发卡!");
                        return(-1);
                    }
                }
                return(0);
            }
            catch (Exception err)
            {
                LogService.GlobalInfoMessage("吐卡失败!请重试自助发卡!" + err.Message);
                k101.MoveCard("回收卡片");
                MyMsg.MsgInfo("吐卡失败!请重试自助发卡!" + err.Message);
                return(-1);
            }
        }
Пример #10
0
        public FrmNewOfficeList()
        {
            InitializeComponent();

            if (Settings.Default.运行模式 == "RUN")
            {
                LogService.GlobalInfoMessage("查询科室列表");
                this.WindowState = FormWindowState.Maximized;
                SkyComm skyComm = new SkyComm();
                dtOffice = skyComm.QueryDepartmentsInfo().Tables[0];
            }
            else
            {
                dtOffice = new DataTable();
                DataColumn dc = new DataColumn();
                dc.ColumnName = "科室名称";
                dc.DataType   = typeof(System.String);
                dtOffice.Columns.Add(dc);

                dc            = new DataColumn();
                dc.ColumnName = "科室编号";
                dc.DataType   = typeof(System.String);
                dtOffice.Columns.Add(dc);

                DataRow drNew = dtOffice.NewRow();
                drNew["科室名称"] = "外科";
                drNew["科室编号"] = "1";
                dtOffice.Rows.Add(drNew);

                drNew         = dtOffice.NewRow();
                drNew["科室名称"] = "内科";
                drNew["科室编号"] = "2";
                dtOffice.Rows.Add(drNew);

                drNew         = dtOffice.NewRow();
                drNew["科室名称"] = "妇科";
                drNew["科室编号"] = "3";
                dtOffice.Rows.Add(drNew);

                drNew         = dtOffice.NewRow();
                drNew["科室名称"] = "产科";
                drNew["科室编号"] = "4";
                dtOffice.Rows.Add(drNew);

                drNew         = dtOffice.NewRow();
                drNew["科室名称"] = "儿科";
                drNew["科室编号"] = "5";
                dtOffice.Rows.Add(drNew);

                drNew         = dtOffice.NewRow();
                drNew["科室名称"] = "耳鼻喉科";
                drNew["科室编号"] = "6";
                dtOffice.Rows.Add(drNew);

                drNew         = dtOffice.NewRow();
                drNew["科室名称"] = "口腔科";
                drNew["科室编号"] = "7";
                dtOffice.Rows.Add(drNew);

                drNew         = dtOffice.NewRow();
                drNew["科室名称"] = "急诊科";
                drNew["科室编号"] = "8";
                dtOffice.Rows.Add(drNew);

                dtDoctor      = new DataTable();
                dc            = new DataColumn();
                dc.ColumnName = "医生编号";
                dc.DataType   = typeof(System.String);
                dtDoctor.Columns.Add(dc);

                dc            = new DataColumn();
                dc.ColumnName = "医生姓名";
                dc.DataType   = typeof(System.String);
                dtDoctor.Columns.Add(dc);

                dc            = new DataColumn();
                dc.ColumnName = "职称";
                dc.DataType   = typeof(System.String);
                dtDoctor.Columns.Add(dc);

                dc            = new DataColumn();
                dc.ColumnName = "所属科室编号";
                dc.DataType   = typeof(System.String);
                dtDoctor.Columns.Add(dc);

                dc            = new DataColumn();
                dc.ColumnName = "挂号金额";
                dc.DataType   = typeof(System.Decimal);
                dtDoctor.Columns.Add(dc);

                dc            = new DataColumn();
                dc.ColumnName = "已挂号数";
                dc.DataType   = typeof(System.Int32);
                dtDoctor.Columns.Add(dc);

                dc            = new DataColumn();
                dc.ColumnName = "挂号限数";
                dc.DataType   = typeof(System.Int32);
                dtDoctor.Columns.Add(dc);

                DataRow drDoctor = dtDoctor.NewRow();
                drDoctor["医生编号"]   = "1";
                drDoctor["医生姓名"]   = "AAAA";
                drDoctor["职称"]     = "aaaa";
                drDoctor["所属科室编号"] = "1";
                drDoctor["挂号金额"]   = 10;
                drDoctor["已挂号数"]   = 30;
                drDoctor["挂号限数"]   = 100;
                dtDoctor.Rows.Add(drDoctor);

                drDoctor           = dtDoctor.NewRow();
                drDoctor["医生编号"]   = "2";
                drDoctor["医生姓名"]   = "BBBB";
                drDoctor["职称"]     = "bbbb";
                drDoctor["所属科室编号"] = "1";
                drDoctor["挂号金额"]   = 10;
                drDoctor["已挂号数"]   = 20;
                drDoctor["挂号限数"]   = 100;
                dtDoctor.Rows.Add(drDoctor);

                drDoctor           = dtDoctor.NewRow();
                drDoctor["医生编号"]   = "3";
                drDoctor["医生姓名"]   = "CCCC";
                drDoctor["职称"]     = "cccc";
                drDoctor["所属科室编号"] = "1";
                drDoctor["挂号金额"]   = 10;
                drDoctor["已挂号数"]   = 40;
                drDoctor["挂号限数"]   = 100;
                dtDoctor.Rows.Add(drDoctor);

                drDoctor           = dtDoctor.NewRow();
                drDoctor["医生编号"]   = "4";
                drDoctor["医生姓名"]   = "DDDD";
                drDoctor["职称"]     = "dddd";
                drDoctor["所属科室编号"] = "1";
                drDoctor["挂号金额"]   = 10;
                drDoctor["已挂号数"]   = 50;
                drDoctor["挂号限数"]   = 100;
                dtDoctor.Rows.Add(drDoctor);

                drDoctor           = dtDoctor.NewRow();
                drDoctor["医生编号"]   = "2";
                drDoctor["医生姓名"]   = "BBBB";
                drDoctor["职称"]     = "bbbb";
                drDoctor["所属科室编号"] = "2";
                drDoctor["挂号金额"]   = 10;
                drDoctor["已挂号数"]   = 20;
                drDoctor["挂号限数"]   = 100;
                dtDoctor.Rows.Add(drDoctor);

                drDoctor           = dtDoctor.NewRow();
                drDoctor["医生编号"]   = "3";
                drDoctor["医生姓名"]   = "CCCC";
                drDoctor["职称"]     = "cccc";
                drDoctor["所属科室编号"] = "2";
                drDoctor["挂号金额"]   = 10;
                drDoctor["已挂号数"]   = 40;
                drDoctor["挂号限数"]   = 100;
                dtDoctor.Rows.Add(drDoctor);

                drDoctor           = dtDoctor.NewRow();
                drDoctor["医生编号"]   = "4";
                drDoctor["医生姓名"]   = "DDDD";
                drDoctor["职称"]     = "dddd";
                drDoctor["所属科室编号"] = "2";
                drDoctor["挂号金额"]   = 10;
                drDoctor["已挂号数"]   = 50;
                drDoctor["挂号限数"]   = 100;
                dtDoctor.Rows.Add(drDoctor);

                drDoctor           = dtDoctor.NewRow();
                drDoctor["医生编号"]   = "2";
                drDoctor["医生姓名"]   = "BBBB";
                drDoctor["职称"]     = "bbbb";
                drDoctor["所属科室编号"] = "3";
                drDoctor["挂号金额"]   = 10;
                drDoctor["已挂号数"]   = 20;
                drDoctor["挂号限数"]   = 100;
                dtDoctor.Rows.Add(drDoctor);

                drDoctor           = dtDoctor.NewRow();
                drDoctor["医生编号"]   = "3";
                drDoctor["医生姓名"]   = "CCCC";
                drDoctor["职称"]     = "cccc";
                drDoctor["所属科室编号"] = "3";
                drDoctor["挂号金额"]   = 10;
                drDoctor["已挂号数"]   = 40;
                drDoctor["挂号限数"]   = 100;
                dtDoctor.Rows.Add(drDoctor);

                drDoctor           = dtDoctor.NewRow();
                drDoctor["医生编号"]   = "4";
                drDoctor["医生姓名"]   = "DDDD";
                drDoctor["职称"]     = "dddd";
                drDoctor["所属科室编号"] = "3";
                drDoctor["挂号金额"]   = 10;
                drDoctor["已挂号数"]   = 50;
                drDoctor["挂号限数"]   = 100;
                dtDoctor.Rows.Add(drDoctor);
            }

            startIndex = 0;
            //DataBind();
        }