public static bool Modify(LisTmCorresponding model)
        {
            string sql = string.Format("update t_jk_listmcorresponding set qmlistm='{0}',includeblood={2} where listm='{1}'",
                                       model.QmLisTm, model.LisTm, model.IncludeBlood);

            return(db.ExecuteNonQueryBySql(sql) > 0);
        }
Esempio n. 2
0
        public static bool Operation(LisTmCorresponding model)
        {
            if (HadExisted(model.LisTm))
            {
                return(Modify(model));
            }

            return(Insert(model));
        }
        public static bool Insert(LisTmCorresponding model)
        {
            string sql =
                string.Format(
                    "insert into t_jk_listmcorresponding(qmlistm,listm,createdate,status,includeblood) values('{0}','{1}','{2}',{3},{4})"
                    , model.QmLisTm, model.LisTm, model.CreateDate, model.Status, model.IncludeBlood);

            return(db.ExecuteNonQueryBySql(sql) > 0);
        }
Esempio n. 4
0
 public static bool Modify(LisTmCorresponding model)
 {
     return(LisTmCorrespondingDal.Modify(model));
 }
Esempio n. 5
0
 public static bool Insert(LisTmCorresponding model)
 {
     return(LisTmCorrespondingDal.Insert(model));
 }