示例#1
0
        /// <summary>
        /// POS小票保存
        /// </summary>
        /// <param name="Customer_Id">客户标识</param>
        /// <param name="Unit_Id">组织标识</param>
        /// <param name="User_Id">用户标识</param>
        /// <param name="inoutList">inout model 集合</param>
        /// <returns>返回真假</returns>
        public bool SetPosInoutInfo(string Customer_Id, string Unit_Id, string User_Id, IList <InoutInfo> inoutList)
        {
            string strError = string.Empty;

            try
            {
                LoggingSessionInfo loggingSessionInfo = GetLoggingSessionInfo(Customer_Id, User_Id, Unit_Id);
                PosInoutService    posInoutService    = new PosInoutService();
                foreach (InoutInfo inoutInfo in inoutList)
                {
                    inoutInfo.if_flag = "1";
                }
                bool bReturn = posInoutService.SetPosInoutInfo(loggingSessionInfo, inoutList, out strError);
                if (bReturn)
                {
                    return(bReturn);
                }
                else
                {
                    throw new Exception(string.Format(strError, strError));
                }
            }
            catch (Exception ex) {
                strError = ex.ToString();
                throw (ex);
            }
        }
示例#2
0
    public int GetPosInoutNotPackagedCount(string Customer_Id, string Unit_Id)
    {
        int             iCount          = 0;
        PosInoutService posInoutService = new PosInoutService();

        iCount = posInoutService.GetPosInoutNotPackagedCountWeb(Customer_Id, Unit_Id);
        return(iCount);
    }
示例#3
0
    public bool SetPosInoutIfFlagInfo(string Customer_Id, string bat_id)
    {
        bool            bReturn         = false;
        string          strError        = string.Empty;
        PosInoutService posInoutService = new PosInoutService();

        bReturn = posInoutService.SetPosInoutIfFlagInfoWeb(Customer_Id, bat_id, out strError);
        return(bReturn);
    }
示例#4
0
    public List <InoutDetailInfo> GetPosInoutDetailListPackaged(string Customer_Id, string Unit_Id, List <InoutInfo> inoutInfoList)
    {
        IList <InoutDetailInfo> mlInfoList      = new List <InoutDetailInfo>();
        PosInoutService         posInoutService = new PosInoutService();

        mlInfoList = posInoutService.GetPosInoutDetailListPackageWeb(Customer_Id, Unit_Id, inoutInfoList);
        List <InoutDetailInfo> list = mlInfoList.ToList();

        return(list);
    }
示例#5
0
    public List <InoutInfo> GetPosInoutListPackaged(string Customer_Id, string Unit_Id, int startRow, int rowsCount, string bat_id)
    {
        IList <InoutInfo> mlInfoList      = new List <InoutInfo>();
        PosInoutService   posInoutService = new PosInoutService();

        mlInfoList = posInoutService.GetPosInoutListPackagedWeb(Customer_Id, Unit_Id, rowsCount, startRow, bat_id);
        List <InoutInfo> list = mlInfoList.ToList();

        return(list);
    }
示例#6
0
    private void testInout()
    {
        //A0EEA5267DB6499EB11BF4D93964013C'
        List <InoutInfo> inoutInfoList = new List <InoutInfo>();
        PosInoutService  piService     = new PosInoutService();

        this.GridView2.DataSource = piService.GetPosInoutListPackagedWeb("29E11BDC6DAC439896958CC6866FF64E", null, 10, 1, "A0EEA5267DB6499EB11BF4D93964013C");

        GridView2.DataBind();
        //GetPosInoutDetailListPackaged("29E11BDC6DAC439896958CC6866FF64E", null, dd.GetPosInoutListPackaged("29E11BDC6DAC439896958CC6866FF64E", "", 0, 10, "A0EEA5267DB6499EB11BF4D93964013C"));
    }
示例#7
0
    private void TestInoutDetail()
    {
        List <InoutInfo> inoutInfoList = new List <InoutInfo>();
        InoutInfo        inoutInfo     = new InoutInfo();

        inoutInfo.order_id = "065ce71a390e4d7580c22852575a99a7";
        inoutInfoList.Add(inoutInfo);

        InoutInfo inoutInfo1 = new InoutInfo();

        inoutInfo1.order_id = "24e5078c2b004d73b8a0a7af0f8dee68";
        inoutInfoList.Add(inoutInfo1);

        PosInoutService piService = new PosInoutService();

        this.GridView2.DataSource = piService.GetPosInoutDetailListPackageWeb("29E11BDC6DAC439896958CC6866FF64E", "", inoutInfoList);
        GridView2.DataBind();
    }