public ActionResult CreateSave() { var userStatus = UserStatusManage.getUserStatus(); t_user_titlechange titleChange = new t_user_titlechange(); UserTitleChangeBLL userTitleChangeBLL = new UserTitleChangeBLL(); bool b = userTitleChangeBLL.AddUserTitleChange(titleChange, userStatus); return(Json("")); }
public ActionResult EditSave(int id) { var userStatus = UserStatusManage.getUserStatus(); UserTitleChangeBLL userTitleChangeBLL = new UserTitleChangeBLL(); t_user_titlechange titleChange = userTitleChangeBLL.GetEntity(o => o.pkid == id); bool b = userTitleChangeBLL.AddUserTitleChange(titleChange, userStatus); return(Json("")); }
public ActionResult Delete(int id) { var userStatus = UserStatusManage.getUserStatus(); IUserEduBLL userEducationBLL = new UserEduBLL(); t_user_edu userEdu = userEducationBLL.GetEntity(o => o.pkid == id); bool b = userEducationBLL.DeleteEduRecord(userEdu, userStatus); return(Json("")); }
public ActionResult CreateSave() { var userStatus = UserStatusManage.getUserStatus(); var resume = new t_user_resume(); GenerateResumeFromRequest(resume, userStatus); bool b = new UserResumeBLL().AddUserResume(resume, userStatus); return(Json("")); }
public ActionResult EditSave(int id) { var userStatus = UserStatusManage.getUserStatus(); IUserEduBLL userEducationBLL = new UserEduBLL(); t_user_edu userEdu = userEducationBLL.GetEntity(o => o.pkid == id); GenerateUserEdu(userEdu); userEducationBLL.AddEduRecord(userEdu, userStatus); return(Json("")); }
private void GenerateUserInfoFromRequest(t_userinfo_base userInfoBase, HttpRequestBase request) { var userStatus = UserStatusManage.getUserStatus(); userInfoBase.usercode = request["usercode"]; userInfoBase.pycodefull = request["pycodefull"]; userInfoBase.pycodeshort = request["pycodeshort"]; userInfoBase.usernameen = request["usernameen"]; userInfoBase.nickname = request["nickname"]; userInfoBase.gender = request["gender"]; userInfoBase.birthday = string.IsNullOrEmpty(request["birthday"])?default(DateTime?) : DateTime.Parse(request["birthday"]); userInfoBase.birthcountry = string.IsNullOrEmpty(request["birthcountry"])?default(int?):int.Parse(request["birthcountry"]); userInfoBase.birthcity = string.IsNullOrEmpty(request["birthcity"]) ? default(int?) : int.Parse(request["birthcity"]); userInfoBase.nationalityid = string.IsNullOrEmpty(request["nationalityid"]) ? default(int?) : int.Parse(request["nationalityid"]); userInfoBase.lastrecord = string.IsNullOrEmpty(request["lastrecord"]) ? default(int?) : int.Parse(request["lastrecord"]); userInfoBase.lastschool = request["lastschool"]; userInfoBase.lastspeciality = request["lastspeciality"]; userInfoBase.lastschooldate = string.IsNullOrEmpty(request["lastschooldate"]) ? default(DateTime?) : DateTime.Parse(request["lastschooldate"]); userInfoBase.checkindate = string.IsNullOrEmpty(request["checkindate"]) ? default(DateTime?) : DateTime.Parse(request["checkindate"]); userInfoBase.checkoutdate = string.IsNullOrEmpty(request["checkoutdate"]) ? default(DateTime?) : DateTime.Parse(request["checkoutdate"]); string tempfiletype = null; userInfoBase.userhrpic = StreamUtil.StreamToByte(request.Files, "userhrpic", ref tempfiletype); userInfoBase.userhrpictype = tempfiletype; userInfoBase.userselfpic = StreamUtil.StreamToByte(request.Files, "userselfpic", ref tempfiletype); userInfoBase.userselfpictype = tempfiletype; userInfoBase.lasttitle = string.IsNullOrEmpty(request["lasttitle"]) ? default(int?) : int.Parse(request["lasttitle"]); userInfoBase.lastjobpost = string.IsNullOrEmpty(request["lastjobpost"]) ? default(int?) : int.Parse(request["lastjobpost"]); userInfoBase.lastlevel = string.IsNullOrEmpty(request["lastlevel"]) ? default(int?) : int.Parse(request["lastlevel"]); userInfoBase.costcenterid = string.IsNullOrEmpty(request["costcenterid"]) ? default(int?) : int.Parse(request["costcenterid"]); userInfoBase.basecityid = string.IsNullOrEmpty(request["basecityid"]) ? default(int?) : int.Parse(request["basecityid"]); userInfoBase.workcityid = string.IsNullOrEmpty(request["workcityid"]) ? default(int?) : int.Parse(request["workcityid"]); userInfoBase.towerid = string.IsNullOrEmpty(request["towerid"]) ? default(int?) : int.Parse(request["towerid"]); userInfoBase.officenum = request["officenum"]; userInfoBase.groupid = string.IsNullOrEmpty(request["groupid"]) ? default(int?) : int.Parse(request["groupid"]); userInfoBase.subcomid = string.IsNullOrEmpty(request["subcomid"]) ? default(int?) : int.Parse(request["subcomid"]); userInfoBase.departid = string.IsNullOrEmpty(request["departid"]) ? default(int?) : int.Parse(request["departid"]); userInfoBase.areaid = string.IsNullOrEmpty(request["areaid"]) ? default(int?) : int.Parse(request["areaid"]); userInfoBase.secuserid1 = string.IsNullOrEmpty(request["secuserid1"]) ? default(int?) : int.Parse(request["secuserid1"]); userInfoBase.secuserid2 = string.IsNullOrEmpty(request["secuserid2"]) ? default(int?) : int.Parse(request["secuserid2"]); userInfoBase.phonenums = request["phonenums"]; userInfoBase.callnums = request["callnums"]; userInfoBase.faxnums = request["faxnums"]; userInfoBase.emailcom = request["emailcom"]; userInfoBase.emailself = request["emailself"]; userInfoBase.politicalid = string.IsNullOrEmpty(request["politicalid"]) ? default(int?) : int.Parse(request["politicalid"]); userInfoBase.inpartydate = string.IsNullOrEmpty(request["inpartydate"]) ? default(DateTime?) : DateTime.Parse(request["inpartydate"]); //userInfoBase.lastlogdate = string.IsNullOrEmpty(request["inpartydate"]) ? default(DateTime?) : DateTime.Parse(request["inpartydate"]); //userInfoBase.statusid = request["statusid"]; //userInfoBase.isdeleted = request["isdeleted"]; userInfoBase.updatetime = DateTime.Now; userInfoBase.updateuserid = userStatus.UserID; }
public ActionResult EditSave(int id) { var userStatus = UserStatusManage.getUserStatus(); UserPostChangeBLL userPostChangeBLL = new UserPostChangeBLL(); t_user_postchange postChange = userPostChangeBLL.GetEntity(o => o.pkid == id); GeneratePostChange(postChange, userStatus); bool b = userPostChangeBLL.EditUserPostChange(postChange, userStatus); return(Json("")); }
public ActionResult CreateSave() { var userStatus = UserStatusManage.getUserStatus(); t_user_postchange postChange = new t_user_postchange(); GeneratePostChange(postChange, userStatus); UserPostChangeBLL userPostChangeBLL = new UserPostChangeBLL(); bool b = userPostChangeBLL.AddUserPostChange(postChange, userStatus); return(Json("")); }
public ActionResult CreateSave() { var userStatus = UserStatusManage.getUserStatus(); t_user_edu userEdu = new t_user_edu(); GenerateUserEdu(userEdu); IUserEduBLL userEducationBLL = new UserEduBLL(); userEducationBLL.AddEduRecord(userEdu, userStatus); return(Json("")); }
public ActionResult CreateSave() { var userStatus = UserStatusManage.getUserStatus(); t_user_levelchange levelChange = new t_user_levelchange(); GenerateLevelChange(levelChange, userStatus); UserLevelChangeBLL userLevelChangeBLL = new UserLevelChangeBLL(); bool b = userLevelChangeBLL.AddUserLevelChange(levelChange, userStatus); return(Json("")); }
private void GenerateUserEdu(t_user_edu userEdu) { if (string.IsNullOrEmpty(Request["userid"])) { throw new ArgumentException("userid 为空"); } var userStatus = UserStatusManage.getUserStatus(); userEdu.userid = int.Parse(Request["userid"]); userEdu.university = Request["university"]; userEdu.city = string.IsNullOrEmpty(Request["city"]) ? default(int?) : int.Parse(Request["city"]); userEdu.startdate = string.IsNullOrEmpty(Request["startdate"]) ? default(DateTime?) : DateTime.Parse(Request["startdate"]); userEdu.enddate = string.IsNullOrEmpty(Request["enddate"]) ? default(DateTime?) : DateTime.Parse(Request["enddate"]); userEdu.education = string.IsNullOrEmpty(Request["education"]) ? default(int?) : int.Parse(Request["education"]); userEdu.major = Request["university"]; userEdu.desc = Request["university"]; userEdu.updatetime = DateTime.Now; userEdu.updateuserid = userStatus.UserID; }