/// <summary> /// 用户登录查询 /// </summary> /// <param name="loginname">账号</param> /// <param name="loginpass">密码</param> /// <returns></returns> public md_docter LoginUtil(string loginname, string loginpass, string keyvalue, out string error) { error = string.Empty; try { string Encryptpass = Share.BaseTool.EncryptDES(loginpass, keyvalue); if (Encryptpass == loginpass) { error = "用户验证失败"; return null; } md_docter info = new md_docter_DA().LoginUtil(loginname, Encryptpass); if (info == null) { error = "登录账号或密码错误"; return null; } return info; } catch (Exception ex) { error = "登录验证失败,请联系IT部"; return null; } }
public bool UpdateChashdrawList(List<md_docter> list, out string error) { error = string.Empty; try { md_docter_DA da = new md_docter_DA(); return da.UpdateChashdrawList(list, out error); } catch (Exception ex) { error = "修改失败"; return false; } }
/// <summary> /// 修改医生信息 /// </summary> /// <param name="info">医生实体</param> /// <param name="error"></param> /// <returns></returns> public md_docter UpdateDocter(md_docter info, out string error) { error = string.Empty; try { md_docter_DA da = new md_docter_DA(); return da.UpdateDocter(info, out error); } catch (Exception ex) { error = "修改失败"; return null; } }