Example #1
0
 /// <summary>
 /// 刷新列表
 /// </summary>
 /// <param name="ID"></param>
 public void RefreshCode(int id)
 {
     Cursor.Current = Cursors.WaitCursor;
     _cdiobj        = cdibll.Get(id, _type);
     _cdi1obj       = cdi1bll.Get(_cpwomeninfo.cd_id, _type, (int)(_cdiobj?.ID ?? 0));
     _ddstobj       = ddstbll.GetByType(_cpwomeninfo.cd_id, _type, (int)(_cdiobj?.ID ?? 0));
     _zqobj         = ppvtbll.GetByType(_cpwomeninfo.cd_id, _type, (int)(_cdiobj?.ID ?? 0));
     if (_cdiobj != null)
     {
         CommonHelper.setForm(_cdiobj, panel1.Controls);
         ss_chbd_df.Text  = _cdiobj.CHBD_DF;
         ss_chbd_p50.Text = _cdiobj.CHBD_P50;
         ss_chbd_p75.Text = _cdiobj.CHBD_P75;
         ss_bstgz.Text    = _cdiobj.BSTGZ;
         ss_etdyr.Text    = _cdiobj.ETDYR;
     }
     if (_cdi1obj != null)
     {
         CommonHelper.setForm(_cdi1obj, panel1.Controls);
     }
     if (_ddstobj != null)
     {
         CommonHelper.setForm(_ddstobj, panel1.Controls);
     }
     if (_zqobj != null)
     {
         CommonHelper.setForm(_zqobj, panel1.Controls);
     }
     if (_cdiobj == null && _cdi1obj == null && _ddstobj == null && _zqobj == null)
     {
         SetDefault();
     }
     Cursor.Current = Cursors.Default;
 }
Example #2
0
        private CP_CDI1_TAB getCdi1Obj()
        {
            if (cszqm.Text.Trim() == "")
            {
                cszqm.Text = globalInfoClass.UserName;
            }
            CP_CDI1_TAB cdi1obj = CommonHelper.GetObjMenzhen <CP_CDI1_TAB>(groupBox2.Controls, _cpwomeninfo.cd_id);

            cdi1obj.TYPE     = _type;
            cdi1obj.HOSPITAL = _hospital;
            cdi1obj.CSZQM    = cszqm.Text.Trim();
            cdi1obj.CSRQ     = csrq.Text.Trim();
            cdi1obj.CHBD_DF  = jz_chbd_df.Text.Trim();
            cdi1obj.CHBD_P50 = jz_chbd_p50.Text.Trim();
            cdi1obj.CHBD_P75 = jz_chbd_p75.Text.Trim();
            cdi1obj.BSTGZ    = jz_bstgz.Text.Trim();
            cdi1obj.ETDYR    = jz_etdyr.Text.Trim();
            cdi1obj.SZYS     = szys.Text.Trim();
            if (_cdi1obj != null)
            {
                cdi1obj.ID           = _cdi1obj.ID;
                cdi1obj.OPERATE_CODE = _cdi1obj.OPERATE_CODE;
                cdi1obj.OPERATE_NAME = _cdi1obj.OPERATE_NAME;
                cdi1obj.OPERATE_TIME = _cdi1obj.OPERATE_TIME;
            }
            return(cdi1obj);
        }
Example #3
0
        private void buttonX1_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            CP_CDI_TAB  cdiobj  = getCdiObj();
            CP_CDI1_TAB cdi1obj = getCdi1Obj();
            CP_DDST_TAB ddstobj = getDdstObj();
            CP_PPVT_TAB ppvtobj = getPpvtObj();


            bool succ = false;

            if (cdibll.SaveOrUpdate(cdiobj))
            {
                succ = true;
                cdi1obj.EXTERNALID = cdiobj.ID;
                ddstobj.EXTERNALID = cdiobj.ID;
                ppvtobj.EXTERNALID = cdiobj.ID;
            }
            else
            {
                succ = false;
            }
            if (cdi1bll.SaveOrUpdate(cdi1obj))
            {
                succ = true;
            }
            else
            {
                succ = false;
            }
            if (ddstbll.SaveOrUpdate(ddstobj))
            {
                succ = true;
            }
            else
            {
                succ = false;
            }
            if (ppvtbll.SaveOrUpdate(ppvtobj))
            {
                succ = true;
            }
            else
            {
                succ = false;
            }

            if (succ)
            {
                MessageBox.Show("保存成功!");
                RefreshRecordList();
                update_time.SelectedIndex = _list.IndexOf(_list.FirstOrDefault(t => t.UPDATE_TIME == cdiobj.UPDATE_TIME));
            }
            else
            {
                MessageBox.Show("保存失败!");
            }
            Cursor.Current = Cursors.Default;
        }
Example #4
0
 public cp_yysc_printer(TB_CHILDBASE baseobj, CP_DDST_TAB ddstobj, CP_CDI_TAB cdiobj, CP_CDI1_TAB cdi1obj, CP_ZQYYFYJC_TAB zqobj)
 {
     InitializeComponent();
     _baseobj = baseobj;
     _ddstobj = ddstobj;
     _cdiobj  = cdiobj;
     _cdi1obj = cdi1obj;
     _obj     = zqobj;
 }
Example #5
0
 public cp_yysc1_printer(TB_CHILDBASE baseobj, CP_CDI_TAB cdiobj, CP_DDST_TAB ddstobj, CP_CDI1_TAB cdi1obj, CP_PPVT_TAB ppvtobj)
 {
     InitializeComponent();
     _baseobj = baseobj;
     _cdiobj  = cdiobj;
     _ddstobj = ddstobj;
     _cdi1obj = cdi1obj;
     _ppvtobj = ppvtobj;
 }
Example #6
0
        //CDI短表(词汇及句子)测试结果
        private CP_CDI1_TAB getCdi1Obj()
        {
            if (cszqm.Text.Trim() == "")
            {
                cszqm.Text = globalInfoClass.UserName;
            }
            CP_CDI1_TAB cdi1obj = CommonHelper.GetObjMenzhen <CP_CDI1_TAB>(groupBox3.Controls, _cpwomeninfo.cd_id);

            cdi1obj.TYPE     = _type;
            cdi1obj.HOSPITAL = _hospital;
            cdi1obj.CSZQM    = cszqm.Text.Trim();
            cdi1obj.CSRQ     = csrq.Text.Trim();
            cdi1obj.SZYS     = szys.Text.Trim();
            if (_cdi1obj != null)
            {
                cdi1obj.ID           = _cdi1obj.ID;
                cdi1obj.OPERATE_CODE = _cdi1obj.OPERATE_CODE;
                cdi1obj.OPERATE_NAME = _cdi1obj.OPERATE_NAME;
                cdi1obj.OPERATE_TIME = _cdi1obj.OPERATE_TIME;
            }
            return(cdi1obj);
        }