public int SaveJkda_zz(TjZybZz zz) { List <string> sqls = sqls = new List <string>(); TjZybZzBiz zzBiz = new TjZybZzBiz(); if (zzBiz.HasExist(zz.tjbh, zz.tjcs)) { zzBiz.Update(zz, sqls); } else { zzBiz.Insert(zz, sqls); } return(base.SqlDBAgent.sqlupdate(sqls)); }
/// <summary> /// 保存健康档案 /// </summary> /// <param name="ryxx">人员信息</param> /// <param name="sqls"></param> /// <returns></returns> public int SaveJkda(TjZybRyxx ryxx, TjZybZz zz, TjGyzz gyzz, TjZybGqf gqf) { List <string> sqls = sqls = new List <string>(); if (HasExist(ryxx.Tjbh, ryxx.Tjcs)) { Update(ryxx, sqls); } else { InsertRyxx(ryxx, sqls); } TjZybZzBiz zzBiz = new TjZybZzBiz(); if (zzBiz.HasExist(zz.tjbh, zz.tjcs)) { zzBiz.Update(zz, sqls); } else { zzBiz.Insert(zz, sqls); } TjGyzzBiz gyzzBiz = new TjGyzzBiz(); gyzzBiz.Delete(gyzz.tjbh, gyzz.tjcs, sqls); gyzzBiz.Insert(gyzz, sqls); TjZybGqfBiz gqfBiz = new TjZybGqfBiz(); if (gqfBiz.HasExist(gqf.tjbh)) { gqfBiz.Update(gqf, sqls); } else { gqfBiz.Insert(gqf, sqls); } return(base.SqlDBAgent.sqlupdate(sqls)); }