コード例 #1
0
        /// <summary>
        /// 分页获取数据列表
        /// </summary>
        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
        //{
        //return dal.GetList(PageSize,PageIndex,strWhere);
        //}

        #endregion  BasicMethod
        #region  ExtensionMethod

        #endregion  ExtensionMethod

        public bool SaveOrUpdate(Model.dicom di)
        {
            List <Maticsoft.Model.dicom> trList = GetModelList("PID=" + di.PID.ToString() + " And Period=" + di.Period.ToString());

            if (trList != null && trList.Count > 0)
            {
                Maticsoft.Model.dicom oldTreatInfo = trList[0];

                oldTreatInfo.TreatLobeVolumn   = di.TreatLobeVolumn;
                oldTreatInfo.UnTreatLobeVolumn = di.UnTreatLobeVolumn;
                oldTreatInfo.CheckDate         = di.CheckDate;
                oldTreatInfo.File = di.File;
                return(Update(oldTreatInfo));
            }
            else
            {
                return(Add(di));
            }
        }
コード例 #2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(Maticsoft.Model.dicom model)
 {
     return(dal.Update(model));
 }
コード例 #3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public bool Add(Maticsoft.Model.dicom model)
 {
     return(dal.Add(model));
 }