示例#1
0
    public bool SetAdvertiseOrderUnitInfoXML(string str, string customer_id)
    {
        AdvertiseOrderUnitService advertiseOrderUnitService = new AdvertiseOrderUnitService();
        bool bReturn = advertiseOrderUnitService.SetAdvertiseOrderUnitInfoXML(str, customer_id);

        return(bReturn);
    }
示例#2
0
    private void TestSetAdvertiseOrderUnitInfoList()
    {
        //cPos.Service.cBillService bs = new cBillService();
        //cPos.Model.LoggingSessionInfo loggingSessionInfo = new LoggingSessionInfo();
        //loggingSessionInfo = new cPos.Service.CLoggingSessionService().GetLoggingSessionInfo("29E11BDC6DAC439896958CC6866FF64E", "e3b3c960a42f41b0bf8e6e2ae3a8ad43");
        LoggingManager loggingManager = new cLoggingManager().GetLoggingManager("29E11BDC6DAC439896958CC6866FF64E");

        IList <AdvertiseOrderUnitInfo> aoaList = new List <AdvertiseOrderUnitInfo>();
        AdvertiseOrderUnitInfo         aoa1    = new AdvertiseOrderUnitInfo();

        aoa1.order_unit_id = "1";
        aoa1.order_id      = "1";
        aoa1.customer_id   = "29E11BDC6DAC439896958CC6866FF64E";
        aoa1.unit_id       = "1";
        aoaList.Add(aoa1);

        AdvertiseOrderUnitInfo aoa2 = new AdvertiseOrderUnitInfo();

        aoa2.order_unit_id = "2";
        aoa2.order_id      = "1";
        aoa2.customer_id   = "29E11BDC6DAC439896958CC6866FF64E";
        aoa2.unit_id       = "f12e3eb7b773472fabcec82fe63a4ece";
        aoaList.Add(aoa2);

        AdvertiseOrderUnitInfo aoa3 = new AdvertiseOrderUnitInfo();

        aoa3.order_unit_id = "3";
        aoa3.order_id      = "2";
        aoa3.customer_id   = "29E11BDC6DAC439896958CC6866FF64E";
        aoa3.unit_id       = "1";
        aoaList.Add(aoa3);

        AdvertiseOrderUnitInfo aoa4 = new AdvertiseOrderUnitInfo();

        aoa4.order_unit_id = "4";
        aoa4.order_id      = "2";
        aoa4.customer_id   = "29E11BDC6DAC439896958CC6866FF64E";
        aoa4.unit_id       = "f12e3eb7b773472fabcec82fe63a4ece";
        aoaList.Add(aoa4);


        AdvertiseOrderUnitService aoaService = new AdvertiseOrderUnitService();

        this.lb1.Text = aoaService.SetAdvertiseOrderUnitInfoList(loggingManager, aoaList, true).ToString();
    }