/// <summary>
        /// 金商提货受理明细
        /// </summary>
        /// <param name="loginID"></param>
        /// <param name="agentInfoID"></param>
        /// <param name="orderNo">定单编码</param>
        /// <param name="orderCode">提货买跌验证号</param>
        /// <param name="accountName">用户名</param>
        /// <param name="createDate">提货开始时间</param>
        /// <param name="endDate">提货结束时间</param>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <param name="page"></param>
        /// <returns></returns>
        public ErrType GetAgentOrderList(string agentInfoID, string loginID, string account,
                                         string orderNo, string orderCode, string userName, string createDate,
                                         string endDate, int pageindex, int pagesize, ref int page,
                                         ref ObservableCollection <BzjTakeGoodsDetailEntity> list, int roleType)
        {
            try
            {
                OrderEntity orderEntity = new OrderEntity();
                orderEntity.OrderNo    = orderNo;    //     定单编码
                orderEntity.OrderCode  = orderCode;  //	提货买跌验证号
                orderEntity.Account    = account;    //	用户
                orderEntity.CreateDate = createDate; //提货开始时间
                orderEntity.EndDate    = endDate;    //提货结束时间
                orderEntity.Name       = userName;
                //Name	String	姓名


                OrderOperationEntity opEntyit = new OrderOperationEntity();
                opEntyit.Type = 1;
                EntityBase result = _IManagerBzj.GetAgentOrderList(agentInfoID, orderEntity, loginID, pageindex, pagesize, ref page, roleType);
                if (result.Result)
                {
                    list = MyConverter.ToBzjTakeGoodsDetailEntity(result.DataSource);
                }
                return(result.Result ? GeneralErr.Success : new ErrType(ERR.SERVICE, result.Desc));
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message + ex.StackTrace);
                return(null);
            }
        }
 /// <summary>
 /// 用户库存信息查询
 /// </summary>
 /// <param name="userId"></param>
 public ErrType GetAdminUserStockInfo(string loginID, string userId, ref BzjInfoInformation bzjInfo, int roleType)
 {
     try
     {
         StockEntity info = _IManagerBzj.GetAdminUserStockInfo(loginID, userId, roleType);
         bzjInfo = MyConverter.ToBzjInfo(info);
         return(info.Result ? GeneralErr.Success : new ErrType(ERR.SERVICE, info.Desc));
     }
     catch (Exception ex)
     {
         Console.WriteLine("用户库存信息查询:" + ex.Message + ex.StackTrace);
         return(null);
     }
 }
 /// <summary>
 /// 定单明细
 /// </summary>
 /// <param name="loginID"></param>
 /// <param name="orderCode"></param>
 /// <param name="bzjInfo"></param>
 /// <returns></returns>
 public ErrType GetOrderNOInfo(string loginID, string orderCode, ref BzjOrderEntity bzjInfo, int roleType)
 {
     try
     {
         OrderEntity info = _IManagerBzj.GetOrderNOInfo(loginID, orderCode, roleType);
         bzjInfo = MyConverter.ToBzjOrderEntity(info);
         return(info.Result ? GeneralErr.Success : new ErrType(ERR.SERVICE, info.Desc));
     }
     catch (Exception ex)
     {
         Console.WriteLine("用户库存信息查询:" + ex.Message + ex.StackTrace);
         return(null);
     }
 }
 /// <summary>
 /// 金生金用户绑定
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public ErrType CreateAdminGssUser(BzjUserBindEntity bzjentity, string loginID, string userID, int roleType)
 {
     try
     {
         UserBindEntity entity = MyConverter.ToUserBindEntity(bzjentity);
         ResultDesc     result = _IManagerBzj.CreateAdminGssUser(entity, loginID, roleType);
         return(result.Result ? GeneralErr.Success : new ErrType(ERR.SERVICE, result.Desc));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message + ex.StackTrace);
         return(null);
     }
 }