示例#1
0
        /// <summary>
        /// 转科时的操作
        /// </summary>
        /// <param name="record">插入医嘱一条记录</param>
        /// <param name="transdept">插入转科表一条记录</param>
        /// <param name="records">更新修改停嘱的末次</param>
        /// <returns></returns>
        public bool Turn(HIS.Model.ZY_DOC_ORDERRECORD record, HIS.Model.ZY_DOC_TRANSDEPT transdept, List <HIS.Model.ZY_DOC_ORDERRECORD> records)
        {
            oleDb.BeginTransaction();
            try
            {
                //20100524.2.03 转科申请时部分赋值放业务逻辑层
                record.ORECORD_A2   = 1;
                record.GROUP_ID     = PubMethd.GetGroupMax(record.PATID, 1);
                record.BABYID       = 0;
                record.ORDER_TYPE   = 1;
                record.ITEM_TYPE    = 10;
                record.ORDITEM_ID   = -1;
                record.AMOUNT       = 0;
                record.PRES_AMOUNT  = 1;
                record.UNIT         = "";
                record.FIRSET_TIMES = 1;
                record.ORDER_USAGE  = "";
                record.FREQUENCY    = "1";
                record.DELETE_FLAG  = 0;
                record.STATUS_FALG  = 1;
                record.SERIAL_ID    = 0;
                BindEntity <HIS.Model.ZY_DOC_ORDERRECORD> .CreateInstanceDAL(oleDb).Add(record);//插入医嘱一条记录

                transdept.ORDER_ID = record.ORDER_ID;
                BindEntity <HIS.Model.ZY_DOC_TRANSDEPT> .CreateInstanceDAL(oleDb).Add(transdept);

                for (int i = 0; i < records.Count; i++)//更新修改停嘱的末次
                {
                    BindEntity <HIS.Model.ZY_DOC_ORDERRECORD> .CreateInstanceDAL(oleDb).Update(records[i]);
                }
                oleDb.CommitTransaction();
                return(true);
            }
            catch (System.Exception e)
            {
                oleDb.RollbackTransaction();
                throw new Exception(e.Message);
            }
        }
示例#2
0
 /// <summary>
 /// 转科申请
 /// </summary>
 /// <param name="record"></param>
 /// <param name="transdept"></param>
 /// <param name="records"></param>
 /// <returns></returns>
 public bool TurnDept(HIS.Model.ZY_DOC_ORDERRECORD record, HIS.Model.ZY_DOC_TRANSDEPT transdept)
 {
     return(tempop.Turndept().Turn(record, transdept, records));
 }