예제 #1
0
 /// <summary>
 /// 保存工作信息
 /// </summary>
 /// <param name="m"></param>
 /// <returns></returns>
 public static int saveProfession(Models.employeeProfession m)
 {
     using (employeeDAL dal = new employeeDAL())
     {
         return(dal.saveProfession(m));
     }
 }
예제 #2
0
 //保存工作信息
 public int saveProfession(Models.employeeProfession m)
 {
     SqlParameter[] pars = new SqlParameter[]
     {
         new SqlParameter("@eid", m.eid),
         new SqlParameter("@xzbm", m.county),
         new SqlParameter("@company", m.company),
         new SqlParameter("@jibie", m.jibie),
         new SqlParameter("@zhicheng", m.zhicheng),
         new SqlParameter("@idcard", m.idcard),
         new SqlParameter("@bz", m.bz),
         new SqlParameter("@retu", SqlDbType.Int)
     };
     pars[7].Direction = ParameterDirection.ReturnValue;
     SqlHelper.RunProcedures("[me_saveProfession]", pars);
     return(Convert.ToInt32(pars[7].Value));
 }