public Panel_yingyang_zhuanan(ChildBaseInfoObj baseobj)
        {
            InitializeComponent();

            _yingyangzhuananpanel = this;
            _baseobj = baseobj;
        }
        public Panel_goulou_zhuanan(ChildBaseInfoObj baseobj)
        {
            InitializeComponent();

            _goulouzhuananpanel = this;
            _baseobj            = baseobj;
        }
        public Paneltsb_gaowei_zhuanan(ChildBaseInfoObj baseobj)
        {
            InitializeComponent();

            _gaoweizhuananpanel = this;
            _baseobj            = baseobj;
        }
        public Panel_pinxue_zhuanan(ChildBaseInfoObj baseobj)
        {
            InitializeComponent();

            _pinxuezhuananpanel = this;
            _baseobj            = baseobj;
        }
Beispiel #5
0
        public cp_WomenInfo(object obj)
        {
            InitializeComponent();
            ChildBaseInfoObj baseobj = obj as ChildBaseInfoObj;

            cd_id = baseobj.id;
            refreshInfo();
        }
Beispiel #6
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dataGridView1.CurrentCell.RowIndex != -1)
     {
         ChildBaseInfoObj        baseobj    = dataGridView1.CurrentRow.Tag as ChildBaseInfoObj;
         Paneltsb_gaowei_zhuanan zhuananadd = new Paneltsb_gaowei_zhuanan(baseobj);
         zhuananadd.ShowDialog();
     }
 }
Beispiel #7
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dataGridView1.CurrentCell.RowIndex != -1)
     {
         ChildBaseInfoObj          baseobj             = dataGridView1.CurrentRow.Tag as ChildBaseInfoObj;
         Panelxinliyichang_zhuanan yingyangzhuananmain = new Panelxinliyichang_zhuanan(baseobj);
         yingyangzhuananmain.ShowDialog();
     }
 }
 public PanelPinxuezhuananPrinter(DataGridView dataGridView, ChildBaseInfoObj baseobj, ChildYingyanggeanObj yinyanggeanobj)
 {
     InitializeComponent();
     _dataGridView      = dataGridView;//页面传过来需要打印的datagridview对象
     _pageHeaders       = new List <Header>();
     _tableFoots        = new List <Header>();
     _columnsPrintWidth = new List <int>();
     _baseobj           = baseobj;
     _yinyanggeanobj    = yinyanggeanobj;
 }
Beispiel #9
0
 public pritner(DataGridView dataGridView, ChildBaseInfoObj baseobj, ChildGaoweigeanObj gaoweigeanobj)
 {
     InitializeComponent();
     _dataGridView      = dataGridView;//页面传过来需要打印的datagridview对象
     _pageHeaders       = new List <Header>();
     _tableFoots        = new List <Header>();
     _columnsPrintWidth = new List <int>();
     _baseobj           = baseobj;
     _gaoweigeanobj     = gaoweigeanobj;
 }
Beispiel #10
0
 private void toBaseInfoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (dataGridView1.RowCount > 0 && dataGridView1.CurrentCell.RowIndex != -1)
     {
         ChildBaseInfoObj obj      = dataGridView1.CurrentRow.Tag as ChildBaseInfoObj;
         frmMain          mianform = this.ParentForm as frmMain;
         mianform.updateMdiForm("医生工作站", typeof(WomenInfo), obj);
     }
     else
     {
         MessageBox.Show("请选择要跳转的儿童");
     }
 }
Beispiel #11
0
 private void tsb_gotobaseinfo_Click(object sender, EventArgs e)
 {
     if (dataGridView1.RowCount > 0 && dataGridView1.CurrentCell.RowIndex != -1)
     {
         ChildBaseInfoObj obj = dataGridView1.CurrentRow.Tag as ChildBaseInfoObj;
         int id = obj.Id;
         globalInfoClass.Wm_Index = id;
         ChildMainForm mianform = this.ParentForm as ChildMainForm;
         mianform.updateMdiForm("儿保建卡", typeof(PanelyibanxinxiMain));
     }
     else
     {
         MessageBox.Show("请选择要跳转的儿童");
     }
 }
Beispiel #12
0
 private void dataGridView1_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (dataGridView1.CurrentCell.RowIndex != -1)
     {
         ChildBaseInfoObj obj = dataGridView1.CurrentRow.Tag as ChildBaseInfoObj;
         if (String.IsNullOrEmpty(obj.jiuzhenCardNo))
         {
             obj.jiuzhenCardNo = _txtNo;
         }
         else
         {
             obj.jiuzhenCardNo += "," + _txtNo;
         }
         int id = obj.Id;
         globalInfoClass.Wm_Index = id;
         _panelyibanxinximain.obj = obj;
         _panelyibanxinximain.RefreshCode();
         DialogResult = System.Windows.Forms.DialogResult.OK;
     }
 }
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dataGridView1.CurrentCell.RowIndex != -1)
     {
         ChildBaseInfoObj         baseobj             = dataGridView1.CurrentRow.Tag as ChildBaseInfoObj;
         PanelYingyangZhuananMain yingyangzhuananmain = new PanelYingyangZhuananMain(baseobj);
         yingyangzhuananmain.ShowDialog();
         //if (baseobj.yingyangbuliang.Contains("佝偻病"))
         //{
         //    Paneltsb_goulou_zhuanan zhuananadd = new Paneltsb_goulou_zhuanan(baseobj);
         //    zhuananadd.ShowDialog();
         //}
         //else if (baseobj.yingyangbuliang.Contains("贫血"))
         //{
         //    Paneltsb_pinxue_zhuanan zhuananadd = new Paneltsb_pinxue_zhuanan(baseobj);
         //    zhuananadd.ShowDialog();
         //}
         //else
         //{
         //    Paneltsb_yingyang_zhuanan zhuananadd = new Paneltsb_yingyang_zhuanan(baseobj);
         //    zhuananadd.ShowDialog();
         //}
     }
 }
 public PanelYingyangZhuananMain(ChildBaseInfoObj baseinfoobj)
 {
     InitializeComponent();
     obj = baseinfoobj;
 }
        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonX1_Click(object sender, EventArgs e)
        {
            if (dataGridView1.Rows.Count <= 1)
            {
                MessageBox.Show("合并信息至少需要 2 条数据!");
                return;
            }

            ChildBaseInfoObj obj = new ChildBaseInfoObj();

            obj = rowMergeView1.Rows[0].Tag as ChildBaseInfoObj;

            obj.jiuzhenCardNo      = rowMergeView1.Rows[0].Cells[0].Value.ToString();
            obj.linshi             = rowMergeView1.Rows[0].Cells[1].Value.ToString();
            obj.HealthCardNo       = rowMergeView1.Rows[0].Cells[2].Value.ToString();
            obj.ChildName          = rowMergeView1.Rows[0].Cells[3].Value.ToString();
            obj.ChildGender        = rowMergeView1.Rows[0].Cells[4].Value.ToString();
            obj.bloodType          = rowMergeView1.Rows[0].Cells[5].Value.ToString();
            obj.childBirthDay      = rowMergeView1.Rows[0].Cells[6].Value.ToString();
            obj.childBuildDay      = rowMergeView1.Rows[0].Cells[7].Value.ToString();
            obj.childBuildHospital = rowMergeView1.Rows[0].Cells[8].Value.ToString();
            obj.FatherName         = rowMergeView1.Rows[0].Cells[9].Value.ToString();
            obj.fatherAge          = rowMergeView1.Rows[0].Cells[10].Value.ToString();
            obj.FatherHeight       = rowMergeView1.Rows[0].Cells[11].Value.ToString();
            obj.fatherEducation    = rowMergeView1.Rows[0].Cells[12].Value.ToString();
            obj.FatherJob          = rowMergeView1.Rows[0].Cells[13].Value.ToString();
            obj.motherName         = rowMergeView1.Rows[0].Cells[14].Value.ToString();
            obj.MotherAge          = rowMergeView1.Rows[0].Cells[15].Value.ToString();
            obj.identityno         = rowMergeView1.Rows[0].Cells[16].Value.ToString();
            obj.motherHeight       = rowMergeView1.Rows[0].Cells[17].Value.ToString();
            obj.motherEducation    = rowMergeView1.Rows[0].Cells[18].Value.ToString();
            obj.MotherJob          = rowMergeView1.Rows[0].Cells[19].Value.ToString();
            obj.telephone          = rowMergeView1.Rows[0].Cells[20].Value.ToString();
            obj.address            = rowMergeView1.Rows[0].Cells[21].Value.ToString();
            obj.nurseryInstitution = rowMergeView1.Rows[0].Cells[22].Value.ToString();
            obj.cs_fetus           = rowMergeView1.Rows[0].Cells[23].Value.ToString();
            obj.cs_produce         = rowMergeView1.Rows[0].Cells[24].Value.ToString();
            obj.cs_week            = rowMergeView1.Rows[0].Cells[25].Value.ToString();
            obj.cs_day             = rowMergeView1.Rows[0].Cells[26].Value.ToString();

            obj.modeDelivery       = rowMergeView1.Rows[0].Cells[27].Value.ToString();
            obj.perineumIncision   = rowMergeView1.Rows[0].Cells[28].Value.ToString();
            obj.neonatalCondition  = rowMergeView1.Rows[0].Cells[29].Value.ToString();
            obj.birthWeight        = rowMergeView1.Rows[0].Cells[30].Value.ToString();
            obj.birthHeight        = rowMergeView1.Rows[0].Cells[31].Value.ToString();
            obj.birthaddress       = rowMergeView1.Rows[0].Cells[32].Value.ToString();
            obj.hospitalizedStates = rowMergeView1.Rows[0].Cells[33].Value.ToString();
            obj.oneMonth           = rowMergeView1.Rows[0].Cells[34].Value.ToString();
            obj.inFourMonth        = rowMergeView1.Rows[0].Cells[35].Value.ToString();
            obj.fourToSixMonth     = rowMergeView1.Rows[0].Cells[36].Value.ToString();
            obj.gaowei             = rowMergeView1.Rows[0].Cells[37].Value.ToString();

            string[] tableName = { "TB_CHILDCHECK",           "child_yingyanggean",      "child_yingyanggean_record",
                                   "child_pinxuegean_record", "child_goulougean_record", "tb_gaowei", "tb_gaowei_record" };
            string   sqls = "";

            if (bll.updateChildBaseInfo(obj))
            {
                for (int i = 1; i < dataGridView1.Rows.Count; i++)
                {
                    ChildBaseInfoObj newobj = rowMergeView1.Rows[0].Tag as ChildBaseInfoObj;
                    ChildBaseInfoObj obj1   = dataGridView1.Rows[i].Tag as ChildBaseInfoObj;
                    obj1.status = "0";
                    bll.updatejiben(obj1);//基本信息
                    for (int n = 0; n < tableName.Length; n++)
                    {
                        sqls = "update " + tableName[n] + " set childId=" + newobj.id + " where childId=" + obj1.id + "";
                        checkbll.deleterecord(sqls);
                    }
                }
                MessageBox.Show("合并成功!");
                seacher_click();
                refreshCode1();
            }
            else
            {
                MessageBox.Show("合并失败!", "系统提示");
                return;
            }
        }
Beispiel #16
0
 public Panelxinliyichang_zhuanan(ChildBaseInfoObj baseobj)
 {
     InitializeComponent();
     _baseobj            = baseobj;
     _gaoweizhuananpanel = this;
 }
        private void txtNo_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)13)
            {
                string sqls = string.Format("select * from TB_CHILDBASE where status='1' ");
                if (!String.IsNullOrEmpty(txtNo.Text))
                {
                    sqls += " and jiuzhenCardNo like '%" + txtNo.Text + "%'";
                }
                else
                {
                    return;
                }

                ArrayList list = bll.getchildBaseListTwo(sqls);
                if (list != null && list.Count > 0)
                {
                    ChildBaseInfoObj obj = list[0] as ChildBaseInfoObj;
                    int id = obj.Id;
                    globalInfoClass.Wm_Index = id;
                    _panelyibanxinximain.obj = obj;
                    _panelyibanxinximain.RefreshCode();
                    DialogResult = System.Windows.Forms.DialogResult.OK;
                }
                else
                {
                    SqlDataReader sdr     = null;
                    HosDateLogic  dg      = new HosDateLogic();
                    String        usersql = "select visit_number,patient_name,regist_time,identityno,contact_phone,sex,age,address,birthtime from v_yyt_registration where cardnum='" + txtNo.Text.Trim() + "' order by regist_time desc";
                    try
                    {
                        sdr = dg.executequery(usersql);

                        if (!sdr.HasRows)
                        {
                            MessageBox.Show("检索不到病人就诊信息!", "系统提示");
                            //textBoxX20.Focus();
                            return;
                        }
                        else
                        {
                            sdr.Read();
                            ChildBaseInfoObj obj = new ChildBaseInfoObj();
                            obj.ChildName     = sdr["patient_name"].ToString().Trim();
                            obj.ChildGender   = sdr["sex"].ToString().Trim();
                            obj.jiuzhenCardNo = txtNo.Text.Trim();
                            if (!String.IsNullOrEmpty(sdr["birthtime"].ToString()))
                            {
                                obj.childBirthDay = sdr["birthtime"].ToString();
                            }
                            sqls = "select * from TB_CHILDBASE where status='1' and childName like '%" + obj.ChildName + "%'";
                            list = bll.getchildBaseListTwo(sqls);
                            if (list != null && list.Count > 0)
                            {
                                if (list.Count == 1)
                                {
                                    obj = list[0] as ChildBaseInfoObj;
                                    if (String.IsNullOrEmpty(obj.jiuzhenCardNo))
                                    {
                                        obj.jiuzhenCardNo = txtNo.Text.Trim();
                                    }
                                    else
                                    {
                                        obj.jiuzhenCardNo += "," + txtNo.Text.Trim();
                                    }
                                    int id = obj.Id;
                                    globalInfoClass.Wm_Index = id;
                                    _panelyibanxinximain.obj = obj;
                                    _panelyibanxinximain.RefreshCode();
                                    DialogResult = System.Windows.Forms.DialogResult.OK;
                                }
                                else
                                {
                                    DialogResult = System.Windows.Forms.DialogResult.OK;
                                    Panel_readCardlist readlist = new Panel_readCardlist(list, txtNo.Text.Trim(), _panelyibanxinximain);
                                    readlist.ShowDialog();
                                }
                            }
                            else
                            {
                                MessageBox.Show("未检索到该儿童信息,请新建档案");
                                globalInfoClass.Wm_Index = -1;
                                _panelyibanxinximain.obj = obj;
                                _panelyibanxinximain.RefreshCode();
                                DialogResult = System.Windows.Forms.DialogResult.OK;
                            }
                        }
                    }
                    catch (Exception ex)
                    {
                        throw ex;
                    }
                    finally
                    {
                        sdr.Close();
                        dg.con_close();
                    }
                }
            }
        }