/// <summary> /// 店员资料分页查询 /// </summary> public ErrType GetClerkBaseInfoWithPage(BzjClerkQueryCon Cqc, int pageindex, int pagesize, ref int pageCount, ref ObservableCollection<BzjClerk> bzjClerkList) { try { //Todo:金通网待处理 #region MyRegion //bzjClerkList.Clear(); //ClerkQueryCon con = MyConverter.ToClerkQueryCon(Cqc); //ClerkBaseInfo info = ManagerService.GetClerkBaseInfoWithPage(con, pageindex, pagesize, ref pageCount); //if (!info.Result) // return new ErrType(ERR.SERVICE, info.Desc); //bzjClerkList = new ObservableCollection<BzjClerk>(info.ClerkList.Select(MyConverter.ToBzjClerk)); #endregion return GeneralErr.Success; } catch (TimeoutException te) { FileLog.WriteLog("", Assembly.GetExecutingAssembly().GetName().Name, this.GetType().Name, new StackTrace().GetFrame(0).GetMethod().Name, te.Message); return new ErrType(ERR.EXEPTION, ErrorText.TimeoutException); } catch (Exception ex) { FileLog.WriteLog("", Assembly.GetExecutingAssembly().GetName().Name, this.GetType().Name, new StackTrace().GetFrame(0).GetMethod().Name, ex.Message); return new ErrType(ERR.EXEPTION, ErrorText.QueryError); } }
/// <summary> /// 获取店员 /// </summary> public void GetClerkExecute() { if (ClerkAccountList != null && ClerkAccountList.Count > 0) ClerkAccountList.Clear(); GetClerkCondition.IsBusy = true; BzjClerkQueryCon con = new BzjClerkQueryCon(); con.LoginId = _loginID; string name = _accName; if (_accType == ACCOUNT_TYPE.DealerClerk) name = _ClerkAgentId; con.AgentId = name; con.ClerkId = GetClerkCondition.Account; con.ClerkName = GetClerkCondition.UserName; con.ClerkPhone = GetClerkCondition.Phone; con.UserType = (int)_accType; int pageCount = 0; ErrType err = _businessService.GetClerkBaseInfoWithPage(con, GetClerkCondition.PageIndex, GetClerkCondition.PageSize, ref pageCount, ref _ClerkAccountList); if (err.Err != ERR.SUCCESS) MessageBox.Show(err.ErrMsg, err.ErrTitle, MessageBoxButton.OK, MessageBoxImage.Information); else { GetClerkCondition.PageCount = pageCount; ClerkAccountList = _ClerkAccountList; } GetClerkCondition.IsBusy = false; }