示例#1
0
        public GetResponse <List <DistroGDNInfo> > GetDistroDeliveredNote()
        {
            GetResponse <List <DistroGDNInfo> > response = new GetResponse <List <DistroGDNInfo> >();

            using (var dbScrop = new MB.Orm.DB.OperationDatabaseScope(new Orm.DB.OperationDatabaseContext("MB.OldERP")))
            {
                List <DistroHeaderHelper> distroHeaderHelpers = new List <DistroHeaderHelper>();
                distroHeaderHelpers = MB.RuleBase.Common.DatabaseExcuteByXmlHelper.NewInstance.GetObjectsByXml <DistroHeaderHelper>(XMLFILE, "GetDistroDeliveredNoteHeader");
                if (distroHeaderHelpers == null || distroHeaderHelpers.Count <= 0)
                {
                    return(response);
                }
                GetHeaderParams(distroHeaderHelpers);
            }
            return(response);
        }
示例#2
0
        public GetResponse <List <ShopInfo> > GetShopsInfo()
        {
            GetResponse <List <ShopInfo> > response = new GetResponse <List <ShopInfo> >();

            using (var dbScrop = new MB.Orm.DB.OperationDatabaseScope(new Orm.DB.OperationDatabaseContext("MB.OldERP")))
            {
                List <ShopInfo> lsShops = new List <ShopInfo>();
                lsShops = MB.RuleBase.Common.DatabaseExcuteByXmlHelper.NewInstance.GetObjectsByXml <ShopInfo>(XMLFILE, "GetShopInfo");
                if (lsShops != null && lsShops.Count > 0)
                {
                    response.HeaderFlag = "1";
                    response.HeaderMSG  = "Success";
                }
                response.Responseparams = lsShops;

                return(response);
            }
        }