Ejemplo n.º 1
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(ZQUSR.Model.sr_LwZzJc model)
 {
     dal.Update(model);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(ZQUSR.Model.sr_LwZzJc model)
 {
     dal.Add(model);
 }
Ejemplo n.º 3
0
        /// <summary>
        /// 获得数据列表
        /// </summary>
        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
        //{
        //return dal.GetList(PageSize,PageIndex,strWhere);
        //}

        #endregion  成员方法

        #region 返回学术论文/学术著作/教材数据列表(教师角色)     ——By Jianguo Fung
        /// <summary>
        /// 返回学术论文/学术著作/教材数据列表(教师角色)     ——By Jianguo Fung
        /// </summary>
        /// <returns></returns>
        public DataSet GetLwZzJcByJs(ZQUSR.Model.sr_LwZzJc model)
        {
            return(dal.GetLwZzJcByJs(model));
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 获得数据列表
        /// </summary>
        public List <ZQUSR.Model.sr_LwZzJc> DataTableToList(DataTable dt)
        {
            List <ZQUSR.Model.sr_LwZzJc> modelList = new List <ZQUSR.Model.sr_LwZzJc>();
            int rowsCount = dt.Rows.Count;

            if (rowsCount > 0)
            {
                ZQUSR.Model.sr_LwZzJc model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model           = new ZQUSR.Model.sr_LwZzJc();
                    model.PK_LZID   = dt.Rows[n]["PK_LZID"].ToString();
                    model.FK_UserID = dt.Rows[n]["FK_UserID"].ToString();
                    model.BigSort   = dt.Rows[n]["BigSort"].ToString();
                    model.SmallSort = dt.Rows[n]["SmallSort"].ToString();
                    model.Type      = dt.Rows[n]["Type"].ToString();
                    model.Title     = dt.Rows[n]["Title"].ToString();
                    if (dt.Rows[n]["AddTime"].ToString() != "")
                    {
                        model.AddTime = DateTime.Parse(dt.Rows[n]["AddTime"].ToString());
                    }
                    model.Unit   = dt.Rows[n]["Unit"].ToString();
                    model.Source = dt.Rows[n]["Source"].ToString();
                    if (dt.Rows[n]["PublishTime"].ToString() != "")
                    {
                        model.PublishTime = DateTime.Parse(dt.Rows[n]["PublishTime"].ToString());
                    }
                    model.Number1 = dt.Rows[n]["Number1"].ToString();
                    model.Number2 = dt.Rows[n]["Number2"].ToString();
                    if (dt.Rows[n]["Rank"].ToString() != "")
                    {
                        model.Rank = int.Parse(dt.Rows[n]["Rank"].ToString());
                    }
                    if (dt.Rows[n]["Population"].ToString() != "")
                    {
                        model.Population = int.Parse(dt.Rows[n]["Population"].ToString());
                    }
                    model.AllAuthor  = dt.Rows[n]["AllAuthor"].ToString();
                    model.SchoolSign = dt.Rows[n]["SchoolSign"].ToString();
                    model.State      = dt.Rows[n]["State"].ToString();
                    model.StateUnit  = dt.Rows[n]["StateUnit"].ToString();
                    if (dt.Rows[n]["Word"].ToString() != "")
                    {
                        model.Word = decimal.Parse(dt.Rows[n]["Word"].ToString());
                    }
                    model.Remark     = dt.Rows[n]["Remark"].ToString();
                    model.AuditState = dt.Rows[n]["AuditState"].ToString();
                    model.JiBie      = dt.Rows[n]["JiBie"].ToString();
                    if (dt.Rows[n]["LevelFactor"].ToString() != "")
                    {
                        model.LevelFactor = decimal.Parse(dt.Rows[n]["LevelFactor"].ToString());
                    }
                    if (dt.Rows[n]["PerScore"].ToString() != "")
                    {
                        model.PerScore = decimal.Parse(dt.Rows[n]["PerScore"].ToString());
                    }
                    if (dt.Rows[n]["Rewards"].ToString() != "")
                    {
                        model.Rewards = decimal.Parse(dt.Rows[n]["Rewards"].ToString());
                    }
                    if (dt.Rows[n]["Bounty"].ToString() != "")
                    {
                        model.Bounty = decimal.Parse(dt.Rows[n]["Bounty"].ToString());
                    }
                    if (dt.Rows[n]["ShiFa"].ToString() != "")
                    {
                        model.ShiFa = decimal.Parse(dt.Rows[n]["ShiFa"].ToString());
                    }
                    model.Extra1 = dt.Rows[n]["Extra1"].ToString();
                    model.Extra2 = dt.Rows[n]["Extra2"].ToString();
                    model.Extra3 = dt.Rows[n]["Extra3"].ToString();
                    model.Extra4 = dt.Rows[n]["Extra4"].ToString();
                    model.Extra5 = dt.Rows[n]["Extra5"].ToString();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
Ejemplo n.º 5
0
 /// <summary>
 /// 学术著作:根据来源(Source)和著作类型(Type)返回对应的级别(JiBie)及级别分系数(LevelFactor)     ——By Jianguo Fung
 /// </summary>
 /// </summary>
 /// <param name="LZJModel"></param>
 /// <returns></returns>
 public ZQUSR.Model.sr_Evaluate GetZhuZuoJiBie(ZQUSR.Model.sr_LwZzJc LZJModel)
 {
     return(dal.GetZhuZuoJiBie(LZJModel));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// ��������б�
 /// </summary>
 public List<ZQUSR.Model.sr_LwZzJc> DataTableToList(DataTable dt)
 {
     List<ZQUSR.Model.sr_LwZzJc> modelList = new List<ZQUSR.Model.sr_LwZzJc>();
     int rowsCount = dt.Rows.Count;
     if (rowsCount > 0)
     {
         ZQUSR.Model.sr_LwZzJc model;
         for (int n = 0; n < rowsCount; n++)
         {
             model = new ZQUSR.Model.sr_LwZzJc();
             model.PK_LZID=dt.Rows[n]["PK_LZID"].ToString();
             model.FK_UserID=dt.Rows[n]["FK_UserID"].ToString();
             model.BigSort=dt.Rows[n]["BigSort"].ToString();
             model.SmallSort=dt.Rows[n]["SmallSort"].ToString();
             model.Type=dt.Rows[n]["Type"].ToString();
             model.Title=dt.Rows[n]["Title"].ToString();
             if(dt.Rows[n]["AddTime"].ToString()!="")
             {
                 model.AddTime=DateTime.Parse(dt.Rows[n]["AddTime"].ToString());
             }
             model.Unit=dt.Rows[n]["Unit"].ToString();
             model.Source=dt.Rows[n]["Source"].ToString();
             if(dt.Rows[n]["PublishTime"].ToString()!="")
             {
                 model.PublishTime=DateTime.Parse(dt.Rows[n]["PublishTime"].ToString());
             }
             model.Number1=dt.Rows[n]["Number1"].ToString();
             model.Number2=dt.Rows[n]["Number2"].ToString();
             if(dt.Rows[n]["Rank"].ToString()!="")
             {
                 model.Rank=int.Parse(dt.Rows[n]["Rank"].ToString());
             }
             if(dt.Rows[n]["Population"].ToString()!="")
             {
                 model.Population=int.Parse(dt.Rows[n]["Population"].ToString());
             }
             model.AllAuthor=dt.Rows[n]["AllAuthor"].ToString();
             model.SchoolSign=dt.Rows[n]["SchoolSign"].ToString();
             model.State=dt.Rows[n]["State"].ToString();
             model.StateUnit=dt.Rows[n]["StateUnit"].ToString();
             if(dt.Rows[n]["Word"].ToString()!="")
             {
                 model.Word=decimal.Parse(dt.Rows[n]["Word"].ToString());
             }
             model.Remark=dt.Rows[n]["Remark"].ToString();
             model.AuditState=dt.Rows[n]["AuditState"].ToString();
             model.JiBie=dt.Rows[n]["JiBie"].ToString();
             if(dt.Rows[n]["LevelFactor"].ToString()!="")
             {
                 model.LevelFactor=decimal.Parse(dt.Rows[n]["LevelFactor"].ToString());
             }
             if(dt.Rows[n]["PerScore"].ToString()!="")
             {
                 model.PerScore=decimal.Parse(dt.Rows[n]["PerScore"].ToString());
             }
             if(dt.Rows[n]["Rewards"].ToString()!="")
             {
                 model.Rewards=decimal.Parse(dt.Rows[n]["Rewards"].ToString());
             }
             if(dt.Rows[n]["Bounty"].ToString()!="")
             {
                 model.Bounty=decimal.Parse(dt.Rows[n]["Bounty"].ToString());
             }
             if(dt.Rows[n]["ShiFa"].ToString()!="")
             {
                 model.ShiFa=decimal.Parse(dt.Rows[n]["ShiFa"].ToString());
             }
             model.Extra1=dt.Rows[n]["Extra1"].ToString();
             model.Extra2=dt.Rows[n]["Extra2"].ToString();
             model.Extra3=dt.Rows[n]["Extra3"].ToString();
             model.Extra4=dt.Rows[n]["Extra4"].ToString();
             model.Extra5=dt.Rows[n]["Extra5"].ToString();
             modelList.Add(model);
         }
     }
     return modelList;
 }