コード例 #1
0
        public void UpdatePhysicalStoreStatusbyWarehouse(int warehouseID, bool IsActive)
        {
            var    physicalStore = new BLL.PhysicalStore();
            string query         =
                HCMIS.Repository.Queries.PhysicalStore.UpdateUpdatePhysicalStoreStatusbyWarehouse(warehouseID, IsActive);

            physicalStore.LoadFromRawSql(query);
        }
コード例 #2
0
        public void UpdatePhysicalStoreStatusbyCluster(int cluster, bool IsActive)
        {
            var    physicalStore = new BLL.PhysicalStore();
            string query         =
                HCMIS.Repository.Queries.PhysicalStore.UpdateUpdatePhysicalStoreStatusbyCluster(cluster, IsActive);

            physicalStore.LoadFromRawSql(query);
        }
コード例 #3
0
        public static DataTable GetPhysicalStoreStatus()
        {
            var    physicalStore = new BLL.PhysicalStore();
            string query         =
                HCMIS.Repository.Queries.PhysicalStore.SelectGetPhysicalStoreStatus();

            physicalStore.LoadFromRawSql(query);
            return(physicalStore.DataTable);
        }
コード例 #4
0
        public static DataTable GetPhysicalStoreStatus()
        {
            var physicalStore = new BLL.PhysicalStore();
            string query =
                HCMIS.Repository.Queries.PhysicalStore.SelectGetPhysicalStoreStatus();

            physicalStore.LoadFromRawSql(query);
            return physicalStore.DataTable;
        }
コード例 #5
0
        public void UpdatePhysicalStoreStatusbyWarehouse(int warehouseID,bool IsActive)
        {
            var physicalStore = new BLL.PhysicalStore();
            string query =
                HCMIS.Repository.Queries.PhysicalStore.UpdateUpdatePhysicalStoreStatusbyWarehouse(warehouseID, IsActive);

            physicalStore.LoadFromRawSql(query);
        }
コード例 #6
0
        public void UpdatePhysicalStoreStatusbyCluster(int cluster, bool IsActive)
        {
            var physicalStore = new BLL.PhysicalStore();
            string query =
                HCMIS.Repository.Queries.PhysicalStore.UpdateUpdatePhysicalStoreStatusbyCluster(cluster, IsActive);

            physicalStore.LoadFromRawSql(query);
        }
コード例 #7
0
        /// <summary>
        /// Gets the quaranteen pallet location.
        /// </summary>
        /// <returns></returns>
        public static int GetQuaranteenPalletLocation(int physicalStoreID)
        {
            int storageType;
            int.TryParse(StorageType.Quaranteen, out storageType);
            var pl = new PalletLocation();
            pl.LoadFromRawSql(HCMIS.Repository.Queries.PalletLocation.SelectGetQuaranteenPalletLocation(physicalStoreID, storageType));
            if (pl.RowCount == 0)
            {
                var physicalStore = new BLL.PhysicalStore();
                physicalStore.LoadByPrimaryKey(physicalStoreID);
                throw new Exception(String.Format("Please Create a suspended pallet location on store:  {0} ",physicalStore.Name));
            }

            return pl.ID;
        }