| | |
| | | return stringBuilder.ToString(); |
| | | } |
| | | |
| | | //归属客户经理 |
| | | public string customerManagerOptions(int userId) |
| | | { |
| | | StringBuilder stringBuilder = new StringBuilder(); |
| | | if (this.SysUserList.Count == 0) |
| | | return "<option value=''>无</option>"; |
| | | stringBuilder.AppendFormat("<option value=\"{0}\" >{1}</option>", (object)"", (object)"无"); |
| | | foreach (SysUser bean in this.SysUserList) |
| | | { |
| | | //停用的用户不再显示 |
| | | if (bean.Status == 0) |
| | | { |
| | | continue; |
| | | } |
| | | //过滤用户类型 1-管理员;2-业务员--全员;3-客户经理;4-客服人员;5-财务人员 |
| | | if (!checkStrForArrayStr(1, bean.UserType) && !checkStrForArrayStr(3, bean.UserType)) |
| | | { |
| | | continue; |
| | | } |
| | | ////归属客户经理 |
| | | //public string customerManagerOptions(int userId) |
| | | //{ |
| | | // StringBuilder stringBuilder = new StringBuilder(); |
| | | // if (this.SysUserList.Count == 0) |
| | | // return "<option value=''>无</option>"; |
| | | // stringBuilder.AppendFormat("<option value=\"{0}\" >{1}</option>", (object)"", (object)"无"); |
| | | // foreach (SysUser bean in this.SysUserList) |
| | | // { |
| | | // //停用的用户不再显示 |
| | | // if (bean.Status == 0) |
| | | // { |
| | | // continue; |
| | | // } |
| | | // //过滤用户类型 1-管理员;2-业务员--全员;3-客户经理;4-客服人员;5-财务人员 |
| | | // if (!checkStrForArrayStr(1, bean.UserType) && !checkStrForArrayStr(3, bean.UserType)) |
| | | // { |
| | | // continue; |
| | | // } |
| | | |
| | | if (userId == bean.UserID) |
| | | stringBuilder.AppendFormat("<option value=\"{0}\" selected>{1}</option>", (object)bean.UserID, (object)bean.UserName); |
| | | else |
| | | stringBuilder.AppendFormat("<option value=\"{0}\">{1}</option>", (object)bean.UserID, (object)bean.UserName); |
| | | } |
| | | return stringBuilder.ToString(); |
| | | } |
| | | // if (userId == bean.UserID) |
| | | // stringBuilder.AppendFormat("<option value=\"{0}\" selected>{1}</option>", (object)bean.UserID, (object)bean.UserName); |
| | | // else |
| | | // stringBuilder.AppendFormat("<option value=\"{0}\">{1}</option>", (object)bean.UserID, (object)bean.UserName); |
| | | // } |
| | | // return stringBuilder.ToString(); |
| | | //} |
| | | |
| | | //归属客服人员 |
| | | public string supportStaffOptions(int userId) |
| | |
| | | return stringBuilder.ToString(); |
| | | } |
| | | |
| | | //归属财务人员 |
| | | public string financialStaffOptions(int userId) |
| | | { |
| | | StringBuilder stringBuilder = new StringBuilder(); |
| | | if (this.SysUserList.Count == 0) |
| | | return "<option value=''>无</option>"; |
| | | stringBuilder.AppendFormat("<option value=\"{0}\" >{1}</option>", (object)"", (object)"无"); |
| | | foreach (SysUser bean in this.SysUserList) |
| | | { |
| | | //停用的用户不再显示 |
| | | if (bean.Status == 0) |
| | | { |
| | | continue; |
| | | } |
| | | //过滤用户类型 1-管理员;2-业务员--全员;3-客户经理;4-客服人员;5-财务人员 |
| | | if (!checkStrForArrayStr(1, bean.UserType) && !checkStrForArrayStr(5, bean.UserType)) |
| | | { |
| | | continue; |
| | | } |
| | | ////归属财务人员 |
| | | //public string financialStaffOptions(int userId) |
| | | //{ |
| | | // StringBuilder stringBuilder = new StringBuilder(); |
| | | // if (this.SysUserList.Count == 0) |
| | | // return "<option value=''>无</option>"; |
| | | // stringBuilder.AppendFormat("<option value=\"{0}\" >{1}</option>", (object)"", (object)"无"); |
| | | // foreach (SysUser bean in this.SysUserList) |
| | | // { |
| | | // //停用的用户不再显示 |
| | | // if (bean.Status == 0) |
| | | // { |
| | | // continue; |
| | | // } |
| | | // //过滤用户类型 1-管理员;2-业务员--全员;3-客户经理;4-客服人员;5-财务人员 |
| | | // if (!checkStrForArrayStr(1, bean.UserType) && !checkStrForArrayStr(5, bean.UserType)) |
| | | // { |
| | | // continue; |
| | | // } |
| | | |
| | | if (userId == bean.UserID) |
| | | stringBuilder.AppendFormat("<option value=\"{0}\" selected>{1}</option>", (object)bean.UserID, (object)bean.UserName); |
| | | else |
| | | stringBuilder.AppendFormat("<option value=\"{0}\">{1}</option>", (object)bean.UserID, (object)bean.UserName); |
| | | } |
| | | return stringBuilder.ToString(); |
| | | } |
| | | // if (userId == bean.UserID) |
| | | // stringBuilder.AppendFormat("<option value=\"{0}\" selected>{1}</option>", (object)bean.UserID, (object)bean.UserName); |
| | | // else |
| | | // stringBuilder.AppendFormat("<option value=\"{0}\">{1}</option>", (object)bean.UserID, (object)bean.UserName); |
| | | // } |
| | | // return stringBuilder.ToString(); |
| | | //} |
| | | |
| | | |
| | | //获取产品信息 |